github.com/0xKiwi/rules_go@v0.24.3/tests/legacy/providers/test.bzl (about)

     1  load("//go:def.bzl", "GoLibrary")
     2  
     3  def _test_impl(ctx):
     4      pass
     5  
     6  test_source = rule(
     7      implementation = _test_impl,
     8      attrs = {
     9          "srcs": attr.label(
    10              mandatory = True,
    11              providers = [GoLibrary],
    12          ),
    13      },
    14  )