blob: b92baaa8cc6377a52e86f83a7cee4b1c8b71a334 [file] [log] [blame]
#
# Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
load("@bazel_gazelle//:def.bzl", "gazelle")
# gazelle:prefix github.com/google/differential-privacy/privacy-on-beam/v2/pbeam/pbeamtest
gazelle(name = "gazelle")
go_library(
name = "go_default_library",
testonly = 1,
srcs = ["pbeamtest.go"],
importpath = "github.com/google/differential-privacy/privacy-on-beam/v2/pbeam/pbeamtest",
visibility = ["//visibility:public"],
deps = [
"//internal/testoption:go_default_library",
"//pbeam:go_default_library",
"@com_github_google_differential_privacy_go_v2//dpagg:go_default_library",
],
)
go_test(
name = "go_default_test",
size = "small",
srcs = ["pbeamtest_test.go"],
embed = [":go_default_library"],
deps = [
"//pbeam:go_default_library",
"//pbeam/testutils:go_default_library",
"@com_github_apache_beam_sdks_v2//go/pkg/beam:go_default_library",
"@com_github_apache_beam_sdks_v2//go/pkg/beam/testing/ptest:go_default_library",
"@com_github_apache_beam_sdks_v2//go/pkg/beam/transforms/stats:go_default_library",
"@com_github_google_go_cmp//cmp:go_default_library",
"@com_github_google_go_cmp//cmp/cmpopts:go_default_library",
],
)