mirror of https://github.com/pulumi/pulumi.git
31 lines
736 B
Python
31 lines
736 B
Python
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
|
|
|
|
go_library(
|
|
name = "diagtest",
|
|
srcs = ["sink.go"],
|
|
importpath = "github.com/pulumi/pulumi/sdk/v3/go/common/testing/diagtest",
|
|
visibility = ["//visibility:public"],
|
|
deps = [
|
|
"//sdk/go/common/diag",
|
|
"//sdk/go/common/diag/colors",
|
|
"//sdk/go/common/testing/iotest",
|
|
],
|
|
)
|
|
|
|
go_test(
|
|
name = "diagtest_test",
|
|
srcs = ["sink_test.go"],
|
|
embed = [":diagtest"],
|
|
deps = [
|
|
"//sdk/go/common/diag",
|
|
"@com_github_stretchr_testify//assert",
|
|
"@com_github_stretchr_testify//require",
|
|
],
|
|
)
|
|
|
|
alias(
|
|
name = "go_default_library",
|
|
actual = ":diagtest",
|
|
visibility = ["//visibility:public"],
|
|
)
|