blob: cb98782bf051e1015165a9a44e0d94d88c02f01e [file] [log] [blame]
Philipp Schrader46304f62023-03-05 14:11:19 -08001load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
2
3go_library(
4 name = "driver_ranking",
5 srcs = ["driver_ranking.go"],
6 data = [
7 "//scouting/DriverRank:driver_rank_script",
8 ],
9 importpath = "github.com/frc971/971-Robot-Code/scouting/webserver/driver_ranking",
10 target_compatible_with = ["@platforms//cpu:x86_64"],
11 visibility = ["//visibility:public"],
12 deps = [
13 "//scouting/db",
14 "@io_bazel_rules_go//go/runfiles:go_default_library",
15 ],
16)
17
18go_test(
19 name = "driver_ranking_test",
20 srcs = ["driver_ranking_test.go"],
21 data = [
22 ":fake_driver_rank_script",
23 ],
24 embed = [":driver_ranking"],
25 target_compatible_with = ["@platforms//cpu:x86_64"],
26 deps = [
27 "//scouting/db",
28 "@com_github_davecgh_go_spew//spew",
29 ],
30)
31
32py_binary(
33 name = "fake_driver_rank_script",
34 testonly = True,
35 srcs = [
36 "fake_driver_rank_script.py",
37 ],
38)