BUILD 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. package(default_visibility = ["//visibility:public"])
  2. load(
  3. "@io_bazel_rules_go//go:def.bzl",
  4. "go_test",
  5. "go_library",
  6. )
  7. go_test(
  8. name = "go_default_test",
  9. srcs = ["base_test.go"],
  10. rundir = ".",
  11. tags = ["automanaged"],
  12. deps = [
  13. "//library/conf/env:go_default_library",
  14. "//library/naming:go_default_library",
  15. "//library/net/netutil/breaker:go_default_library",
  16. "//library/net/rpc/warden:go_default_library",
  17. "//library/net/rpc/warden/balancer/wrr:go_default_library",
  18. "//library/net/rpc/warden/proto/testproto:go_default_library",
  19. "//library/net/rpc/warden/resolver:go_default_library",
  20. "//library/time:go_default_library",
  21. "@org_golang_google_grpc//:go_default_library",
  22. ],
  23. )
  24. filegroup(
  25. name = "package-srcs",
  26. srcs = glob(["**"]),
  27. tags = ["automanaged"],
  28. visibility = ["//visibility:private"],
  29. )
  30. filegroup(
  31. name = "all-srcs",
  32. srcs = [
  33. ":package-srcs",
  34. "//library/net/rpc/warden/balancer/wrr/test/client:all-srcs",
  35. "//library/net/rpc/warden/balancer/wrr/test/server:all-srcs",
  36. ],
  37. tags = ["automanaged"],
  38. visibility = ["//visibility:public"],
  39. )
  40. go_library(
  41. name = "go_default_library",
  42. srcs = ["base.go"],
  43. importpath = "go-common/library/net/rpc/warden/balancer/wrr/test",
  44. tags = ["automanaged"],
  45. visibility = ["//visibility:public"],
  46. )