github.com/gagliardetto/golang-go@v0.0.0-20201020153340-53909ea70814/cmd/go/testdata/src/xtestonly/f_test.go (about) 1 package xtestonly_test 2 3 import ( 4 "testing" 5 "xtestonly" 6 ) 7 8 func TestF(t *testing.T) { 9 if x := xtestonly.F(); x != 42 { 10 t.Errorf("f.F() = %d, want 42", x) 11 } 12 }