mirror of https://github.com/pulumi/pulumi.git
32 lines
721 B
Python
32 lines
721 B
Python
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
|
|
|
|
go_library(
|
|
name = "mapper",
|
|
srcs = [
|
|
"errors.go",
|
|
"mapper.go",
|
|
"mapper_decode.go",
|
|
"mapper_encode.go",
|
|
"object.go",
|
|
],
|
|
importpath = "github.com/pulumi/pulumi/sdk/v3/go/common/util/mapper",
|
|
visibility = ["//visibility:public"],
|
|
deps = ["//sdk/go/common/util/contract"],
|
|
)
|
|
|
|
alias(
|
|
name = "go_default_library",
|
|
actual = ":mapper",
|
|
visibility = ["//visibility:public"],
|
|
)
|
|
|
|
go_test(
|
|
name = "mapper_test",
|
|
srcs = ["mapper_test.go"],
|
|
embed = [":mapper"],
|
|
deps = [
|
|
"@com_github_stretchr_testify//assert",
|
|
"@com_github_stretchr_testify//require",
|
|
],
|
|
)
|