xref: /aosp_15_r20/external/bazelbuild-rules_testing/lib/private/BUILD (revision d605057434dcabba796c020773aab68d9790ff9f)
1# Copyright 2023 The Bazel Authors. All rights reserved.
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7#     http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
16
17licenses(["notice"])
18
19package(
20    default_applicable_licenses = ["//:package_license"],
21    default_visibility = ["//:__subpackages__"],
22)
23
24# Necessary for documentation generation
25exports_files(
26    glob(["*.bzl"]),
27)
28
29bzl_library(
30    name = "analysis_test_bzl",
31    srcs = ["analysis_test.bzl"],
32)
33
34bzl_library(
35    name = "matching_bzl",
36    srcs = ["matching.bzl"],
37)
38
39bzl_library(
40    name = "int_subject_bzl",
41    srcs = ["int_subject.bzl"],
42    deps = [
43        ":check_util_bzl",
44        ":truth_common_bzl",
45        "@bazel_skylib//lib:types",
46    ],
47)
48
49bzl_library(
50    name = "bool_subject_bzl",
51    srcs = ["bool_subject.bzl"],
52    deps = [
53        ":check_util_bzl",
54    ],
55)
56
57bzl_library(
58    name = "collection_subject_bzl",
59    srcs = ["collection_subject.bzl"],
60    deps = [
61        ":check_util_bzl",
62        ":failure_messages_bzl",
63        ":int_subject_bzl",
64        ":matching_bzl",
65        ":truth_common_bzl",
66        ":util_bzl",
67    ],
68)
69
70bzl_library(
71    name = "label_subject_bzl",
72    srcs = ["label_subject.bzl"],
73    deps = [
74        ":check_util_bzl",
75        ":truth_common_bzl",
76        "@bazel_skylib//lib:types",
77    ],
78)
79
80bzl_library(
81    name = "ordered_bzl",
82    srcs = ["ordered.bzl"],
83    deps = [
84    ],
85)
86
87bzl_library(
88    name = "truth_common_bzl",
89    srcs = [
90        "truth_common.bzl",
91    ],
92    deps = ["@bazel_skylib//lib:types"],
93)
94
95bzl_library(
96    name = "check_util_bzl",
97    srcs = [
98        "check_util.bzl",
99    ],
100    deps = [
101        ":compare_util_bzl",
102        ":failure_messages_bzl",
103        ":matching_bzl",
104        ":ordered_bzl",
105        ":truth_common_bzl",
106        "@bazel_skylib//lib:types",
107    ],
108)
109
110bzl_library(
111    name = "failure_messages_bzl",
112    srcs = ["failure_messages.bzl"],
113    deps = [":truth_common_bzl"],
114)
115
116bzl_library(
117    name = "compare_util_bzl",
118    srcs = ["compare_util.bzl"],
119    deps = [":truth_common_bzl"],
120)
121
122bzl_library(
123    name = "expect_meta_bzl",
124    srcs = ["expect_meta.bzl"],
125    deps = ["@bazel_skylib//lib:unittest"],
126)
127
128bzl_library(
129    name = "default_info_subject_bzl",
130    srcs = ["default_info_subject.bzl"],
131    deps = [
132        ":depset_file_subject_bzl",
133        ":file_subject_bzl",
134        ":runfiles_subject_bzl",
135    ],
136)
137
138bzl_library(
139    name = "depset_file_subject_bzl",
140    srcs = ["depset_file_subject.bzl"],
141    deps = [
142        ":check_util_bzl",
143        ":collection_subject_bzl",
144        ":failure_messages_bzl",
145        ":matching_bzl",
146        ":truth_common_bzl",
147        "//lib:util_bzl",
148    ],
149)
150
151bzl_library(
152    name = "instrumented_files_info_subject_bzl",
153    srcs = ["instrumented_files_info_subject.bzl"],
154    deps = [":depset_file_subject_bzl"],
155)
156
157bzl_library(
158    name = "str_subject_bzl",
159    srcs = ["str_subject.bzl"],
160    deps = [
161        ":check_util_bzl",
162        ":collection_subject_bzl",
163    ],
164)
165
166bzl_library(
167    name = "file_subject_bzl",
168    srcs = ["file_subject.bzl"],
169    deps = [
170        ":str_subject_bzl",
171    ],
172)
173
174bzl_library(
175    name = "dict_subject_bzl",
176    srcs = ["dict_subject.bzl"],
177    deps = [
178        ":collection_subject_bzl",
179        ":compare_util_bzl",
180        ":failure_messages_bzl",
181    ],
182)
183
184bzl_library(
185    name = "action_subject_bzl",
186    srcs = ["action_subject.bzl"],
187    deps = [
188        ":collection_subject_bzl",
189        ":depset_file_subject_bzl",
190        ":dict_subject_bzl",
191        ":failure_messages_bzl",
192        ":str_subject_bzl",
193        ":truth_common_bzl",
194    ],
195)
196
197bzl_library(
198    name = "execution_info_subject_bzl",
199    srcs = ["execution_info_subject.bzl"],
200    deps = [
201        ":dict_subject_bzl",
202        ":str_subject_bzl",
203    ],
204)
205
206bzl_library(
207    name = "run_environment_info_subject_bzl",
208    srcs = ["run_environment_info_subject.bzl"],
209    deps = [
210        ":collection_subject_bzl",
211        ":dict_subject_bzl",
212    ],
213)
214
215bzl_library(
216    name = "runfiles_subject_bzl",
217    srcs = ["runfiles_subject.bzl"],
218    deps = [
219        ":check_util_bzl",
220        ":collection_subject_bzl",
221        ":failure_messages_bzl",
222        ":matching_bzl",
223        ":truth_common_bzl",
224        "//lib:util_bzl",
225    ],
226)
227
228bzl_library(
229    name = "struct_subject_bzl",
230    srcs = ["struct_subject.bzl"],
231)
232
233bzl_library(
234    name = "target_subject_bzl",
235    srcs = ["target_subject.bzl"],
236    deps = [
237        ":action_subject_bzl",
238        ":bool_subject_bzl",
239        ":collection_subject_bzl",
240        ":depset_file_subject_bzl",
241        ":execution_info_subject_bzl",
242        ":file_subject_bzl",
243        ":instrumented_files_info_subject_bzl",
244        ":label_subject_bzl",
245        ":run_environment_info_subject_bzl",
246        ":runfiles_subject_bzl",
247        ":truth_common_bzl",
248        "//lib:util_bzl",
249    ],
250)
251
252bzl_library(
253    name = "expect_bzl",
254    srcs = ["expect.bzl"],
255    deps = [
256        ":action_subject_bzl",
257        ":bool_subject_bzl",
258        ":collection_subject_bzl",
259        ":depset_file_subject_bzl",
260        ":dict_subject_bzl",
261        ":expect_meta_bzl",
262        ":file_subject_bzl",
263        ":int_subject_bzl",
264        ":str_subject_bzl",
265        ":struct_subject_bzl",
266        ":target_subject_bzl",
267    ],
268)
269
270bzl_library(
271    name = "util_bzl",
272    srcs = ["util.bzl"],
273)
274