blob: a706701d143c0bae7201c8bb070501a7a5d97ef7 [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:public"],
)
bzl_library(
name = "analysis_test_bzl",
srcs = ["analysis_test.bzl"],
deps = [
"//lib:truth_bzl",
],
)
bzl_library(
name = "truth_bzl",
srcs = ["truth.bzl"],
visibility = [
"//:__subpackages__",
"//tools/build_defs/python/tests/base_rules:__subpackages__",
],
deps = [
"//lib:util_bzl",
"@bazel_skylib//lib:types",
"@bazel_skylib//lib:unittest",
],
)
bzl_library(
name = "util_bzl",
srcs = ["util.bzl"],
# Do not sort: order differs between Google and GitHub; fails lint checks.
visibility = [
"//devtools/python/blaze:__subpackages__",
"//:__subpackages__",
"//tools/build_defs/python/tests:__subpackages__",
],
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__",
],
)