Lines Matching refs:testCase
42 for _, testCase := range testCases {
43 actual := testCase.bazelTargets.LoadStatements()
44 expected := testCase.expectedLoadStatements
83 for _, testCase := range testCases {
88 for f, content := range testCase.filesystem {
94 config := android.TestConfig(buildDir, nil, testCase.bp, filesystem)
96 ctx.RegisterModuleType(testCase.moduleTypeUnderTest, testCase.moduleTypeUnderTestFactory)
97 for _, m := range testCase.depsMutators {
100 …ctx.RegisterBp2BuildMutator(testCase.moduleTypeUnderTest, testCase.moduleTypeUnderTestBp2BuildMuta…
104 if Errored(t, testCase.description, errs) {
108 if Errored(t, testCase.description, errs) {
113 if testCase.dir != "" {
114 checkDir = testCase.dir
118 …if actualCount, expectedCount := len(bazelTargets), len(testCase.expectedBazelTargets); actualCoun…
119 … t.Errorf("%s: Expected %d bazel target, got %d", testCase.description, expectedCount, actualCount)
122 if w, g := testCase.expectedBazelTargets[i], target.content; w != g {
125 testCase.description,