...

Text file src/cmd/go/testdata/script/vendor_test_issue11864.txt

Documentation: cmd/go/testdata/script

     1[short] skip
     2env GO111MODULE=off
     3
     4# test should work too
     5go test github.com/rsc/go-get-issue-11864
     6go test github.com/rsc/go-get-issue-11864/t
     7
     8# external tests should observe internal test exports (golang.org/issue/11977)
     9go test github.com/rsc/go-get-issue-11864/vendor/vendor.org/tx2
    10
    11-- $GOPATH/src/github.com/rsc/go-get-issue-11864/m.go --
    12package g
    13
    14import _ "vendor.org/p"
    15import _ "vendor.org/p1"
    16
    17func main() {}
    18
    19-- $GOPATH/src/github.com/rsc/go-get-issue-11864/t/t_test.go --
    20package t
    21
    22import _ "vendor.org/p"
    23import _ "vendor.org/p1"
    24import "testing"
    25
    26func TestNop(t *testing.T) {}
    27
    28-- $GOPATH/src/github.com/rsc/go-get-issue-11864/t/t.go --
    29package t
    30
    31-- $GOPATH/src/github.com/rsc/go-get-issue-11864/tx/tx_test.go --
    32package tx_test
    33
    34import _ "vendor.org/p"
    35import _ "vendor.org/p1"
    36import "testing"
    37
    38func TestNop(t *testing.T) {}
    39
    40-- $GOPATH/src/github.com/rsc/go-get-issue-11864/tx/tx.go --
    41package tx
    42
    43-- $GOPATH/src/github.com/rsc/go-get-issue-11864/vendor/vendor.org/p1/p1.go --
    44package p1 // import "vendor.org/p1"
    45
    46-- $GOPATH/src/github.com/rsc/go-get-issue-11864/vendor/vendor.org/tx3/tx3_test.go --
    47package tx3_test
    48
    49import "vendor.org/tx3"
    50import "testing"
    51
    52var Found = tx3.Exported
    53
    54func TestNop(t *testing.T) {}
    55
    56-- $GOPATH/src/github.com/rsc/go-get-issue-11864/vendor/vendor.org/tx3/export_test.go --
    57package tx3
    58
    59var Exported = true
    60
    61-- $GOPATH/src/github.com/rsc/go-get-issue-11864/vendor/vendor.org/tx3/tx3.go --
    62package tx3
    63
    64-- $GOPATH/src/github.com/rsc/go-get-issue-11864/vendor/vendor.org/tx2/tx2_test.go --
    65package tx2_test
    66
    67import . "vendor.org/tx2"
    68import "testing"
    69
    70var Found = Exported
    71
    72func TestNop(t *testing.T) {}
    73
    74-- $GOPATH/src/github.com/rsc/go-get-issue-11864/vendor/vendor.org/tx2/export_test.go --
    75package tx2
    76
    77var Exported = true
    78
    79-- $GOPATH/src/github.com/rsc/go-get-issue-11864/vendor/vendor.org/tx2/tx2.go --
    80package tx2
    81
    82-- $GOPATH/src/github.com/rsc/go-get-issue-11864/vendor/vendor.org/p/p.go --
    83package p

View as plain text