blob: 7e6c2943c4454653e465d5e7fb7168990d6118bf [file] [log] [blame]
load("//bazel/go:go_test.bzl", "go_test")
load("@io_bazel_rules_go//go:def.bzl", "go_library")
go_library(
name = "databuilder",
srcs = ["databuilder.go"],
importpath = "go.skia.org/infra/golden/go/sql/databuilder",
visibility = ["//visibility:public"],
deps = [
"//go/paramtools",
"//go/skerr",
"//go/util",
"//golden/go/diff",
"//golden/go/sql",
"//golden/go/sql/schema",
"//golden/go/types",
"@com_github_google_uuid//:uuid",
],
)
go_test(
name = "databuilder_test",
srcs = ["databuilder_test.go"],
data = glob(["testdata/**"]),
embed = [":databuilder"],
deps = [
"//go/paramtools",
"//go/testutils",
"//go/testutils/unittest",
"//golden/go/sql/schema",
"//golden/go/types",
"@com_github_stretchr_testify//assert",
"@com_github_stretchr_testify//require",
],
)