...

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

Documentation: cmd/go/testdata/script

     1[short] skip
     2
     3# test with -fullpath
     4! go test ./x/... -fullpath
     5stdout '^ +.+/gopath/src/x/fullpath/fullpath_test.go:8: test failed'
     6# test without -fullpath
     7! go test ./x/...
     8stdout '^ +fullpath_test.go:8: test failed'
     9
    10-- go.mod --
    11module example
    12-- x/fullpath/fullpath_test.go --
    13package fullpath_test
    14
    15import (
    16	"testing"
    17)
    18
    19func TestFullPath(t *testing.T) {
    20	t.Error("test failed")
    21}

View as plain text