github.com/liujq9674git/golang-src-1.7@v0.0.0-20230517174348-17f6ec47f3f8/src/cmd/go/testdata/norunexample/example_test.go (about)

     1  package pkg_test
     2  
     3  import "os"
     4  
     5  func init() {
     6  	os.Stdout.Write([]byte("File with non-runnable example was built.\n"))
     7  }
     8  
     9  func Example_test() {
    10  	// This test will not be run, it has no "Output:" comment.
    11  }