blob: 3166853291dca9d6e06a5093408e917ba1ca003e [file] [log] [blame]
Philipp Schrader5562df72022-02-16 20:56:51 -08001load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
2
3go_library(
4 name = "static",
5 srcs = ["static.go"],
6 importpath = "github.com/frc971/971-Robot-Code/scouting/webserver/static",
7 target_compatible_with = ["@platforms//cpu:x86_64"],
8 visibility = ["//visibility:public"],
9 deps = ["//scouting/webserver/server"],
10)
11
12go_test(
13 name = "static_test",
14 srcs = ["static_test.go"],
15 data = [
16 "test_pages/page.txt",
17 "test_pages/root.txt",
18 ],
19 embed = [":static"],
Philipp Schradercdb5cfc2022-02-20 14:57:07 -080020 target_compatible_with = ["@platforms//cpu:x86_64"],
Philipp Schrader5562df72022-02-16 20:56:51 -080021 deps = ["//scouting/webserver/server"],
22)