github.com/megatontech/mynoteforgo@v0.0.0-20200507084910-5d0c6ea6e890/源码/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 }