Lines Matching refs:t
24 func TestJavaLint(t *testing.T) {
25 ctx, _ := testJavaWithFS(t, `
42 sboxProto := android.RuleBuilderSboxProtoForTests(t, foo.Output("lint.sbox.textproto"))
44 t.Error("did not pass --baseline flag")
48 func TestJavaLintWithoutBaseline(t *testing.T) {
49 ctx, _ := testJavaWithFS(t, `
64 sboxProto := android.RuleBuilderSboxProtoForTests(t, foo.Output("lint.sbox.textproto"))
66 t.Error("passed --baseline flag for non existent file")
70 func TestJavaLintRequiresCustomLintFileToExist(t *testing.T) {
75 RunTestWithBp(t, `
89 func TestJavaLintUsesCorrectBpConfig(t *testing.T) {
90 ctx, _ := testJavaWithFS(t, `
111 sboxProto := android.RuleBuilderSboxProtoForTests(t, foo.Output("lint.sbox.textproto"))
113 t.Error("did not use the correct file for baseline")
117 t.Error("should check NewApi errors")
121 t.Error("should combine NewApi errors with SomeCheck errors")
125 func TestJavaLintBypassUpdatableChecks(t *testing.T) {
168 t.Run(testCase.name, func(t *testing.T) {
172 RunTestWithBp(t, testCase.bp)
177 func TestJavaLintStrictUpdatabilityLinting(t *testing.T) {
206 RunTestWithBp(t, bp)
209 sboxProto := android.RuleBuilderSboxProtoForTests(t, foo.Output("lint.sbox.textproto"))
212 t.Error("did not restrict baselining NewApi")
216 sboxProto = android.RuleBuilderSboxProtoForTests(t, bar.Output("lint.sbox.textproto"))
219 t.Error("did not restrict baselining NewApi")
223 func TestJavaLintDatabaseSelectionFull(t *testing.T) {
247 RunTestWithBp(t, thisBp)
250 sboxProto := android.RuleBuilderSboxProtoForTests(t, foo.Output("lint.sbox.textproto"))
253 t.Error("used public-filtered lint api database for case", testCase)
257 t.Error("did not use full api database for case", testCase)
263 func TestJavaLintDatabaseSelectionPublicFiltered(t *testing.T) {
283 RunTestWithBp(t, thisBp)
286 sboxProto := android.RuleBuilderSboxProtoForTests(t, foo.Output("lint.sbox.textproto"))
289 t.Error("did not use public-filtered lint api database for case", testCase)
293 t.Error("used full api database for case", testCase)