github.com/stackb/rules_proto@v0.0.0-20240221195024-5428336c51f1/cmd/examplegen/template.go (about) 1 package main 2 3 var testHeader = ` 4 package main 5 6 import ( 7 "testing" 8 "os" 9 10 "github.com/bazelbuild/rules_go/go/tools/bazel_testing" 11 "github.com/google/go-cmp/cmp" 12 ) 13 14 var ( 15 // allow use of os package in other tests 16 _os_Remove = os.Remove 17 // allow use of cmp package in other tests 18 _cmp_Diff = cmp.Diff 19 ) 20 21 func TestMain(m *testing.M) { 22 bazel_testing.TestMain(m, bazel_testing.Args{ 23 Main: txtar, 24 }) 25 } 26 `