| load("//bazel/go:go_test.bzl", "go_test") |
| load("@io_bazel_rules_go//go:def.bzl", "go_library") |
| |
| go_library( |
| name = "server", |
| srcs = ["server.go"], |
| importpath = "go.skia.org/infra/machine/go/test_machine_monitor/server", |
| visibility = ["//visibility:public"], |
| deps = [ |
| "//go/httputils", |
| "//go/metrics2", |
| "//go/sklog", |
| "//machine/go/test_machine_monitor/machine", |
| "@com_github_gorilla_mux//:mux", |
| ], |
| ) |
| |
| go_test( |
| name = "server_test", |
| srcs = ["server_test.go"], |
| embed = [":server"], |
| deps = [ |
| "//machine/go/machine", |
| "//machine/go/test_machine_monitor/machine", |
| "@com_github_stretchr_testify//assert", |
| "@com_github_stretchr_testify//require", |
| ], |
| ) |