@@ -58,7 +58,8 @@ private String evaluateAspectFor(String label) throws Exception {
58
58
59
59
@ Test
60
60
public void simpleCase () throws Exception {
61
- setBuildLanguageOptions ("--experimental_builtins_injection_override=-py_test,-py_binary" );
61
+ setBuildLanguageOptions (
62
+ "--experimental_builtins_injection_override=-py_test,-py_binary,-py_library" );
62
63
scratch .file (
63
64
"pkg/BUILD" ,
64
65
"py_library(" ,
@@ -116,7 +117,8 @@ public void noRequirements() throws Exception {
116
117
117
118
@ Test
118
119
public void twoContradictoryRequirements () throws Exception {
119
- setBuildLanguageOptions ("--experimental_builtins_injection_override=-py_test,-py_binary" );
120
+ setBuildLanguageOptions (
121
+ "--experimental_builtins_injection_override=-py_test,-py_binary,-py_library" );
120
122
scratch .file (
121
123
"pkg/BUILD" ,
122
124
"py_library(" ,
@@ -152,7 +154,8 @@ public void twoContradictoryRequirements() throws Exception {
152
154
153
155
@ Test
154
156
public void toplevelSelfContradictory () throws Exception {
155
- setBuildLanguageOptions ("--experimental_builtins_injection_override=-py_test,-py_binary" );
157
+ setBuildLanguageOptions (
158
+ "--experimental_builtins_injection_override=-py_test,-py_binary,-py_library" );
156
159
scratch .file (
157
160
"pkg/BUILD" ,
158
161
"py_binary(" ,
@@ -178,7 +181,8 @@ public void toplevelSelfContradictory() throws Exception {
178
181
179
182
@ Test
180
183
public void indirectDependencies () throws Exception {
181
- setBuildLanguageOptions ("--experimental_builtins_injection_override=-py_test,-py_binary" );
184
+ setBuildLanguageOptions (
185
+ "--experimental_builtins_injection_override=-py_test,-py_binary,-py_library" );
182
186
// A <- B <- C <- bin, where only B has the constraint.
183
187
scratch .file (
184
188
"pkg/BUILD" ,
@@ -219,7 +223,8 @@ public void indirectDependencies() throws Exception {
219
223
220
224
@ Test
221
225
public void onlyReportTopmost () throws Exception {
222
- setBuildLanguageOptions ("--experimental_builtins_injection_override=-py_test,-py_binary" );
226
+ setBuildLanguageOptions (
227
+ "--experimental_builtins_injection_override=-py_test,-py_binary,-py_library" );
223
228
// A <- B <- C <- bin, where A and C have the constraint.
224
229
scratch .file (
225
230
"pkg/BUILD" ,
@@ -261,7 +266,8 @@ public void onlyReportTopmost() throws Exception {
261
266
262
267
@ Test
263
268
public void oneTopmostReachesAnother () throws Exception {
264
- setBuildLanguageOptions ("--experimental_builtins_injection_override=-py_test,-py_binary" );
269
+ setBuildLanguageOptions (
270
+ "--experimental_builtins_injection_override=-py_test,-py_binary,-py_library" );
265
271
// A <- B <- C, where A and C have the constraint.
266
272
// A <- bin and C <- bin, so both A and C are top-most even though C has a path to A.
267
273
scratch .file (
@@ -306,7 +312,8 @@ public void oneTopmostReachesAnother() throws Exception {
306
312
307
313
@ Test
308
314
public void multiplePathsToRequirement () throws Exception {
309
- setBuildLanguageOptions ("--experimental_builtins_injection_override=-py_test,-py_binary" );
315
+ setBuildLanguageOptions (
316
+ "--experimental_builtins_injection_override=-py_test,-py_binary,-py_library" );
310
317
// Diamond graph A <- B, A <- C, B <- bin, C <- bin, where only A has the constraint.
311
318
// A is reached through two different paths but reported only once.
312
319
scratch .file (
0 commit comments