| load("@io_bazel_rules_go//go:def.bzl", "go_library") |
| load("//bazel/go:go_test.bzl", "go_test") |
| |
| go_library( |
| name = "imgmatching", |
| srcs = [ |
| "constants.go", |
| "factory.go", |
| "matcher.go", |
| ], |
| importpath = "go.skia.org/infra/gold-client/go/imgmatching", |
| visibility = ["//visibility:public"], |
| deps = [ |
| "//go/skerr", |
| "//gold-client/go/imgmatching/exact", |
| "//gold-client/go/imgmatching/fuzzy", |
| "//gold-client/go/imgmatching/positive_if_only_image", |
| "//gold-client/go/imgmatching/sample_area", |
| "//gold-client/go/imgmatching/sobel", |
| ], |
| ) |
| |
| go_test( |
| name = "imgmatching_test", |
| srcs = ["factory_test.go"], |
| embed = [":imgmatching"], |
| deps = [ |
| "//gold-client/go/imgmatching/exact", |
| "//gold-client/go/imgmatching/fuzzy", |
| "//gold-client/go/imgmatching/positive_if_only_image", |
| "//gold-client/go/imgmatching/sample_area", |
| "//gold-client/go/imgmatching/sobel", |
| "@com_github_stretchr_testify//assert", |
| ], |
| ) |