...

Text file src/cmd/go/testdata/vendormod.txt

Documentation: cmd/go/testdata

     1generated by: go run savedir.go vendormod
     2
     3-- a/foo/AUTHORS.txt --
     4-- a/foo/CONTRIBUTORS --
     5-- a/foo/LICENSE --
     6-- a/foo/PATENTS --
     7-- a/foo/COPYING --
     8-- a/foo/COPYLEFT --
     9-- a/foo/licensed-to-kill --
    10-- w/LICENSE --
    11-- x/NOTICE! --
    12-- x/x2/LICENSE --
    13-- mypkg/LICENSE.txt --
    14-- a/foo/bar/b/main.go --
    15package b
    16-- a/foo/bar/b/main_test.go --
    17package b
    18
    19import (
    20	"os"
    21	"testing"
    22)
    23
    24func TestDir(t *testing.T) {
    25	if _, err := os.Stat("../testdata/1"); err != nil {
    26		t.Fatalf("testdata: %v", err)
    27	}
    28}
    29-- a/foo/bar/c/main.go --
    30package c
    31-- a/foo/bar/c/main_test.go --
    32package c
    33
    34import (
    35	"os"
    36	"testing"
    37)
    38
    39func TestDir(t *testing.T) {
    40	if _, err := os.Stat("../../../testdata/1"); err != nil {
    41		t.Fatalf("testdata: %v", err)
    42	}
    43	if _, err := os.Stat("./testdata/1"); err != nil {
    44		t.Fatalf("testdata: %v", err)
    45	}
    46}
    47-- a/foo/bar/c/testdata/1 --
    48-- a/foo/bar/testdata/1 --
    49-- a/go.mod --
    50module a
    51-- a/main.go --
    52package a
    53-- a/main_test.go --
    54package a
    55
    56import (
    57	"os"
    58	"testing"
    59)
    60
    61func TestDir(t *testing.T) {
    62	if _, err := os.Stat("./testdata/1"); err != nil {
    63		t.Fatalf("testdata: %v", err)
    64	}
    65}
    66-- a/testdata/1 --
    67-- appengine.go --
    68// +build appengine
    69
    70package m
    71
    72import _ "appengine"
    73import _ "appengine/datastore"
    74-- go.mod --
    75module m
    76
    77require (
    78	a v1.0.0
    79	mysite/myname/mypkg v1.0.0
    80	w v1.0.0 // indirect
    81	x v1.0.0
    82	y v1.0.0
    83	z v1.0.0
    84)
    85
    86replace (
    87	a v1.0.0 => ./a
    88	mysite/myname/mypkg v1.0.0 => ./mypkg
    89	w v1.0.0 => ./w
    90	x v1.0.0 => ./x
    91	y v1.0.0 => ./y
    92	z v1.0.0 => ./z
    93)
    94-- mypkg/go.mod --
    95module me
    96-- mypkg/mydir/d.go --
    97package mydir
    98-- subdir/v1_test.go --
    99package m
   100
   101import _ "mysite/myname/mypkg/mydir"
   102-- testdata1.go --
   103package m
   104
   105import _ "a"
   106-- testdata2.go --
   107package m
   108
   109import _ "a/foo/bar/b"
   110import _ "a/foo/bar/c"
   111-- v1.go --
   112package m
   113
   114import _ "x"
   115-- v2.go --
   116// +build abc
   117
   118package mMmMmMm
   119
   120import _ "y"
   121-- v3.go --
   122// +build !abc
   123
   124package m
   125
   126import _ "z"
   127-- v4.go --
   128// +build notmytag
   129
   130package m
   131
   132import _ "x/x1"
   133-- w/go.mod --
   134module w
   135-- w/w.go --
   136package w
   137-- x/go.mod --
   138module x
   139-- x/testdata/x.txt --
   140placeholder - want directory with no go files
   141-- x/x.go --
   142package x
   143-- x/x1/x1.go --
   144// +build notmytag
   145
   146package x1
   147-- x/x2/dummy.txt --
   148dummy
   149-- x/x_test.go --
   150package x
   151
   152import _ "w"
   153-- y/go.mod --
   154module y
   155-- y/y.go --
   156package y
   157-- z/go.mod --
   158module z
   159-- z/z.go --
   160package z

View as plain text