github.com/ltltlt/go-source-code@v0.0.0-20190830023027-95be009773aa/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  }