blob: 8d612b32f004e5d7eba7da472c803fdd8b52c25b [file] [log] [blame]
# Copyright 2023 The Bazel Authors. All rights reserved.
#
# 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("@bazel_skylib//:bzl_library.bzl", "bzl_library")
licenses(["notice"])
package(
default_visibility = ["//visibility:private"],
)
bzl_library(
name = "analysis_test_bzl",
srcs = ["analysis_test.bzl"],
visibility = ["//visibility:public"],
deps = [
"//lib:truth_bzl",
],
)
bzl_library(
name = "truth_bzl",
srcs = ["truth.bzl"],
visibility = ["//visibility:public"],
deps = [
"//lib/private:bool_subject_bzl",
"//lib/private:collection_subject_bzl",
"//lib/private:depset_file_subject_bzl",
"//lib/private:expect_bzl",
"//lib/private:int_subject_bzl",
"//lib/private:label_subject_bzl",
"//lib/private:matching_bzl",
],
)
bzl_library(
name = "util_bzl",
srcs = ["util.bzl"],
visibility = ["//visibility:public"],
deps = [
"@bazel_skylib//lib:paths",
"@bazel_skylib//lib:types",
"@bazel_skylib//lib:unittest",
"@bazel_skylib//rules:write_file",
],
)
filegroup(
name = "test_deps",
testonly = True,
srcs = [
"BUILD",
":analysis_test_bzl",
":truth_bzl",
":util_bzl",
],
visibility = [
"//tools/build_defs/python/tests/base_rules:__pkg__",
],
)
exports_files(
srcs = [
"analysis_test.bzl",
"truth.bzl",
"util.bzl",
],
visibility = [
"//docgen:__pkg__",
],
)