Skip to content

Commit

Permalink
be more tricky with unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
pcj committed Feb 20, 2024
1 parent b4a3d88 commit efd1267
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions cmd/examplegen/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,14 @@ import (
"github.com/google/go-cmp/cmp"
)
var (
// allow use of os package in other tests, justify import here
_os_Remove = os.Remove
// allow use of cmp package in other tests, justify import here
_cmp_Diff = cmp.Diff
)
func TestMain(m *testing.M) {
// allow use of cmp in other tests, justify import here
cmp.Diff("", "")
bazel_testing.TestMain(m, bazel_testing.Args{
Main: txtar,
})
Expand Down

0 comments on commit efd1267

Please sign in to comment.