Philipp Schrader | 5562df7 | 2022-02-16 20:56:51 -0800 | [diff] [blame] | 1 | load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") |
| 2 | |
| 3 | go_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 | |
| 12 | go_test( |
| 13 | name = "static_test", |
| 14 | srcs = ["static_test.go"], |
| 15 | data = [ |
Philipp Schrader | 45721a7 | 2022-04-02 16:27:53 -0700 | [diff] [blame] | 16 | "test_pages/index.html", |
Philipp Schrader | 5562df7 | 2022-02-16 20:56:51 -0800 | [diff] [blame] | 17 | "test_pages/page.txt", |
| 18 | "test_pages/root.txt", |
| 19 | ], |
| 20 | embed = [":static"], |
Philipp Schrader | cdb5cfc | 2022-02-20 14:57:07 -0800 | [diff] [blame] | 21 | target_compatible_with = ["@platforms//cpu:x86_64"], |
Philipp Schrader | 5562df7 | 2022-02-16 20:56:51 -0800 | [diff] [blame] | 22 | deps = ["//scouting/webserver/server"], |
| 23 | ) |