| load("//bazel/go:go_test.bzl", "go_test") |
| load("@io_bazel_rules_go//go:def.bzl", "go_library") |
| |
| go_library( |
| name = "sqltest", |
| srcs = ["sqltest.go"], |
| importpath = "go.skia.org/infra/golden/go/sql/sqltest", |
| visibility = ["//visibility:public"], |
| deps = [ |
| "//bazel/external/cockroachdb", |
| "//bazel/go/bazel", |
| "//go/emulators", |
| "//go/skerr", |
| "//go/testutils/unittest", |
| "//go/util", |
| "//golden/go/sql", |
| "//golden/go/sql/schema", |
| "@com_github_jackc_pgx_v4//pgxpool", |
| "@com_github_stretchr_testify//require", |
| ], |
| ) |
| |
| go_test( |
| name = "sqltest_test", |
| srcs = ["sqltest_test.go"], |
| deps = [ |
| ":sqltest", |
| "//go/skerr", |
| "//go/testutils/unittest", |
| "//golden/go/sql/schema", |
| "@com_github_jackc_pgtype//:pgtype", |
| "@com_github_stretchr_testify//assert", |
| "@com_github_stretchr_testify//require", |
| ], |
| ) |