github.com/please-build/go-rules/tools/please_go@v0.0.0-20240319165128-ea27d6f5caba/test/BUILD (about) 1 subinclude("//build_defs:go") 2 3 filegroup( 4 name = "srcs", 5 srcs = glob(["*.go"]), 6 visibility = ["//tools/please_go:bootstrap"], 7 ) 8 9 go_library( 10 name = "test", 11 srcs = [ 12 "find_cover_vars.go", 13 "gotest.go", 14 "write_test_main.go", 15 ], 16 visibility = ["//tools/please_go/..."], 17 deps = [ 18 "//tools/please_go/install/toolchain", 19 ], 20 ) 21 22 go_test( 23 name = "find_cover_vars_test", 24 srcs = ["find_cover_vars_test.go"], 25 data = [ 26 "test_data", 27 ], 28 deps = [ 29 ":test", 30 "//third_party/go:testify", 31 ], 32 ) 33 34 go_test( 35 name = "write_test_main_test", 36 srcs = ["write_test_main_test.go"], 37 data = glob(["test_data/**/*.go"]), 38 deps = [ 39 ":test", 40 "//third_party/go:testify", 41 ], 42 )