/aosp12/build/soong/bp2build/ |
H A D | sh_conversion_test.go | 42 for _, testCase := range testCases { 44 expected := testCase.expectedLoadStatements 83 for _, testCase := range testCases { 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 [all …]
|
H A D | build_conversion_test.go | 937 if testCase.dir != "" { 938 checkDir = testCase.dir 950 testCase.description, 1158 testCase.description, 1352 testCase.description, 1495 if testCase.dir != "" { 1496 checkDir = testCase.dir 1506 testCase.description, 1618 if testCase.dir != "" { 1619 checkDir = testCase.dir [all …]
|
H A D | cc_object_conversion_test.go | 203 for _, testCase := range testCases { 219 ctx.RegisterModuleType(testCase.moduleTypeUnderTest, testCase.moduleTypeUnderTestFactory) 220 …ctx.RegisterBp2BuildMutator(testCase.moduleTypeUnderTest, testCase.moduleTypeUnderTestBp2BuildMuta… 225 if Errored(t, testCase.description, errs) { 229 if Errored(t, testCase.description, errs) { 243 testCase.description, 389 for _, testCase := range testCases { 399 ctx.RegisterModuleType(testCase.moduleTypeUnderTest, testCase.moduleTypeUnderTestFactory) 400 …ctx.RegisterBp2BuildMutator(testCase.moduleTypeUnderTest, testCase.moduleTypeUnderTestBp2BuildMuta… 405 if Errored(t, testCase.description, errs) { [all …]
|
H A D | cc_library_headers_conversion_test.go | 60 for _, testCase := range testCases { 62 expected := testCase.expectedLoadStatements 315 for _, testCase := range testCases { 335 ctx.RegisterModuleType(testCase.moduleTypeUnderTest, testCase.moduleTypeUnderTestFactory) 336 for _, m := range testCase.depsMutators { 339 …ctx.RegisterBp2BuildMutator(testCase.moduleTypeUnderTest, testCase.moduleTypeUnderTestBp2BuildMuta… 343 if Errored(t, testCase.description, errs) { 347 if Errored(t, testCase.description, errs) { 352 if testCase.dir != "" { 353 checkDir = testCase.dir [all …]
|
H A D | python_binary_conversion_test.go | 112 for _, testCase := range testCases { 117 for f, content := range testCase.filesystem { 123 config := android.TestConfig(buildDir, nil, testCase.blueprint, filesystem) 126 ctx.RegisterModuleType(testCase.moduleTypeUnderTest, testCase.moduleTypeUnderTestFactory) 127 …ctx.RegisterBp2BuildMutator(testCase.moduleTypeUnderTest, testCase.moduleTypeUnderTestBp2BuildMuta… 131 if Errored(t, testCase.description, errs) { 135 if Errored(t, testCase.description, errs) { 141 …if actualCount, expectedCount := len(bazelTargets), len(testCase.expectedBazelTargets); actualCoun… 143 … t.Errorf("%s: Expected %d bazel target, got %d", testCase.description, expectedCount, actualCount) 146 if w, g := testCase.expectedBazelTargets[i], target.content; w != g { [all …]
|
H A D | cc_library_conversion_test.go | 566 for _, testCase := range testCases { 571 for f, content := range testCase.filesystem { 577 config := android.TestConfig(buildDir, nil, testCase.bp, filesystem) 584 ctx.RegisterModuleType(testCase.moduleTypeUnderTest, testCase.moduleTypeUnderTestFactory) 585 …ctx.RegisterBp2BuildMutator(testCase.moduleTypeUnderTest, testCase.moduleTypeUnderTestBp2BuildMuta… 587 for _, m := range testCase.depsMutators { 593 if Errored(t, testCase.description, errs) { 597 if Errored(t, testCase.description, errs) { 602 if testCase.dir != "" { 603 checkDir = testCase.dir [all …]
|
H A D | cc_library_static_conversion_test.go | 60 for _, testCase := range testCases { 61 actual := testCase.bazelTargets.LoadStatements() 62 expected := testCase.expectedLoadStatements 919 for _, testCase := range testCases { 937 ctx.RegisterModuleType(testCase.moduleTypeUnderTest, testCase.moduleTypeUnderTestFactory) 938 for _, m := range testCase.depsMutators { 941 …ctx.RegisterBp2BuildMutator(testCase.moduleTypeUnderTest, testCase.moduleTypeUnderTestBp2BuildMuta… 946 if Errored(t, testCase.description, errs) { 955 if testCase.dir != "" { 956 checkDir = testCase.dir [all …]
|
/aosp12/build/soong/android/ |
H A D | util_test.go | 77 f(t, firstUniqueStringsList, testCase.in, testCase.out) 80 f(t, firstUniqueStringsMap, testCase.in, testCase.out) 160 for _, testCase := range testcases { 163 if out != testCase.expected { 199 for _, testCase := range testcases { 202 if out != testCase.expected { 230 for _, testCase := range testcases { 232 out := InList(testCase.key, input) 233 if out != testCase.expected { 268 if out != testCase.expected { [all …]
|
/aosp12/build/blueprint/ |
H A D | splice_modules_test.go | 115 in := make(modulesOrAliases, len(testCase.in), cap(testCase.in)) 116 copy(in, testCase.in) 118 got, gotAt := spliceModules(in, testCase.at, testCase.with) 119 if !reflect.DeepEqual(got, testCase.out) { 120 t.Errorf("test case: %v, %v -> %v", testCase.in, testCase.at, testCase.with) 122 t.Errorf(" expected: %v", testCase.out) 125 if gotAt != testCase.outAt { 126 t.Errorf("test case: %v, %v -> %v", testCase.in, testCase.at, testCase.with) 128 t.Errorf(" expected: %d", testCase.outAt) 132 t.Errorf("test case: %v, %v -> %v", testCase.in, testCase.at, testCase.with) [all …]
|
H A D | ninja_strings_test.go | 111 for _, testCase := range ninjaParseTestCases { 114 for _, varName := range testCase.vars { 126 if len(testCase.strs) > 0 { 127 if testCase.literal { 128 expected = literalNinjaString(testCase.strs[0]) 131 strings: testCase.strs, 137 output, err := parseNinjaString(scope, testCase.input) 141 t.Errorf(" input: %q", testCase.input) 150 if err != nil && err.Error() != testCase.err { 152 t.Errorf(" input: %q", testCase.input) [all …]
|
/aosp12/frameworks/minikin/tests/unittest/ |
H A D | LayoutSplitterTest.cpp | 144 for (const auto& testCase : testCases) { in TEST() local 145 auto[text, range] = parseTestString(testCase.testStr); in TEST() 148 ASSERT_NE(expectationIndex, testCase.expects.size()); in TEST() 206 for (const auto& testCase : testCases) { in TEST() local 207 auto[text, range] = parseTestString(testCase.testStr); in TEST() 258 for (const auto& testCase : testCases) { in TEST() local 259 auto[text, range] = parseTestString(testCase.testStr); in TEST() 310 for (const auto& testCase : testCases) { in TEST() local 311 auto[text, range] = parseTestString(testCase.testStr); in TEST() 345 for (const auto& testCase : testCases) { in TEST() local [all …]
|
/aosp12/build/soong/java/ |
H A D | jacoco_test.go | 55 for _, testCase := range testCases { 56 t.Run(testCase.name, func(t *testing.T) { 57 got, err := jacocoFilterToSpec(testCase.in) 61 if got != testCase.out { 62 t.Errorf("expected %q got %q", testCase.out, got) 97 for _, testCase := range testCases { 98 t.Run(testCase.name, func(t *testing.T) { 99 got := jacocoFiltersToZipCommand(testCase.includes, testCase.excludes) 100 if got != testCase.out { 101 t.Errorf("expected %q got %q", testCase.out, got)
|
H A D | lint_test.go | 167 for _, testCase := range testCases { 168 t.Run(testCase.name, func(t *testing.T) { 172 RunTestWithBp(t, testCase.bp) 240 for _, testCase := range testCases { 241 thisBp := strings.Replace(bp, "XXX", testCase, 1) 253 t.Error("used public-filtered lint api database for case", testCase) 257 t.Error("did not use full api database for case", testCase) 280 for _, testCase := range testCases { 281 thisBp := strings.Replace(bp, "XXX", testCase, 1) 289 t.Error("did not use public-filtered lint api database for case", testCase) [all …]
|
/aosp12/build/soong/cmd/zip2zip/ |
H A D | zip2zip_test.go | 419 for _, testCase := range testCases { 420 t.Run(testCase.name, func(t *testing.T) { 425 for _, file := range testCase.inputFiles { 440 err = zip2zip(inputReader, outputWriter, testCase.sortGlobs, testCase.sortJava, false, 441 testCase.args, testCase.excludes, testCase.includes, testCase.uncompresses) 442 if errorString(testCase.err) != errorString(err) { 443 t.Fatalf("Unexpected error:\n got: %q\nwant: %q", errorString(err), errorString(testCase.err)) 464 if !reflect.DeepEqual(testCase.outputFiles, outputFiles) { 465 …t.Fatalf("Output file list does not match:\nwant: %v\n got: %v", testCase.outputFiles, outputFiles) 467 if !reflect.DeepEqual(testCase.storedFiles, storedFiles) { [all …]
|
/aosp12/build/blueprint/pathtools/ |
H A D | glob_test.go | 499 for _, testCase := range globTestCases { 500 t.Run(testCase.pattern, func(t *testing.T) { 501 testGlob(t, mock, testCase, FollowSymlinks) 509 for _, testCase := range globTestCases { 510 t.Run(testCase.pattern, func(t *testing.T) { 511 testGlob(t, OsFs, testCase, FollowSymlinks) 559 t.Run(testCase.pattern, func(t *testing.T) { 560 testGlob(t, mock, testCase, FollowSymlinks) 570 t.Run(testCase.pattern, func(t *testing.T) { 571 testGlob(t, OsFs, testCase, FollowSymlinks) [all …]
|
/aosp12/build/blueprint/proptools/ |
H A D | extend_test.go | 1055 testString := fmt.Sprintf("%v, %v -> %v", testCase.in1, testCase.in2, testCase.out) 1064 err = AppendProperties(got, testCase.in2, testCase.filter) 1067 err = PrependProperties(got, testCase.in2, testCase.filter) 1073 check(t, testType, testString, got, err, testCase.out, testCase.err) 1079 testString := fmt.Sprintf("%v, %v -> %v", testCase.in1, testCase.in2, testCase.out) 1108 err = ExtendProperties(got, testCase.in2, testCase.filter, order) 1110 check(t, testType, testString, got, err, testCase.out, testCase.err) 1392 testString := fmt.Sprintf("%s, %s -> %s", p(testCase.in1), p(testCase.in2), p(testCase.out)) 1401 err = AppendMatchingProperties(got, testCase.in2, testCase.filter) 1404 err = PrependMatchingProperties(got, testCase.in2, testCase.filter) [all …]
|
H A D | clone_test.go | 277 for _, testCase := range clonePropertiesTestCases { 278 testString := fmt.Sprintf("%s", testCase.in) 282 if !reflect.DeepEqual(testCase.out, got) { 285 t.Errorf(" expected: %#v", testCase.out) 499 for _, testCase := range cloneEmptyPropertiesTestCases { 500 testString := fmt.Sprintf("%#v", testCase.in) 504 if !reflect.DeepEqual(testCase.out, got) { 507 t.Errorf(" expected: %#v", testCase.out) 515 testString := fmt.Sprintf("%#v", testCase.in) 520 if !reflect.DeepEqual(testCase.out, got) { [all …]
|
H A D | typeequal_test.go | 138 for _, testCase := range typeEqualTestCases { 139 testString := fmt.Sprintf("%#v, %#v -> %t", testCase.in1, testCase.in2, testCase.out) 141 got := TypeEqual(testCase.in1, testCase.in2) 143 if got != testCase.out { 146 t.Errorf(" expected: %t", testCase.out)
|
H A D | unpack_test.go | 729 t.Run(testCase.name, func(t *testing.T) { 730 r := bytes.NewBufferString(testCase.input) 733 t.Errorf("test case: %s", testCase.input) 748 if len(testCase.empty) > 0 { 749 for _, p := range testCase.empty { 753 for _, p := range testCase.output { 773 if len(output) != len(testCase.output) { 775 len(testCase.output), len(output)) 967 for _, testCase := range testCases { 968 t.Run(testCase.name, func(t *testing.T) { [all …]
|
/aosp12/build/soong/cmd/path_interposer/ |
H A D | main_test.go | 146 for _, testCase := range testCases { 147 t.Run(testCase.name, func(t *testing.T) { 153 if entry.Basename != testCase.logEntry { 154 t.Errorf("unexpected log entry:\nwant: %q\n got: %q", testCase.logEntry, entry.Basename) 158 exitCode, err := Main(ioutil.Discard, ioutil.Discard, interposer, testCase.args, mainOpts{ 169 if errstr(testCase.err) != errstr(err) { 170 t.Errorf("unexpected error:\nwant: %v\n got: %v", testCase.err, err) 172 if testCase.exitCode != exitCode { 173 t.Errorf("expected exit code %d, got %d", testCase.exitCode, exitCode) 175 if !logged && testCase.logEntry != "" { [all …]
|
/aosp12/build/blueprint/bpmodify/ |
H A D | bpmodify_test.go | 298 for i, testCase := range testCases { 299 t.Run(testCase.name, func(t *testing.T) { 300 targetedProperty.Set(testCase.property) 301 addIdents.Set(testCase.addSet) 302 removeIdents.Set(testCase.removeSet) 303 setString = testCase.setString 305 inAst, errs := parser.ParseAndEval("", strings.NewReader(testCase.input), parser.NewScope(nil)) 311 t.Errorf("%+v", testCase) 316 t.Fatalf(" input must only contain a single module definition: %s", testCase.input) 327 if simplifyModuleDefinition(inModuleString) != simplifyModuleDefinition(testCase.output) { [all …]
|
/aosp12/build/soong/symbol_inject/ |
H A D | elf_test.go | 48 for i, testCase := range testCases { 50 file, err := extractElfSymbols(testCase.file) 54 offset, size, err := findSymbol(file, testCase.symbol) 58 if offset != testCase.offset || size != testCase.size { 59 t.Errorf("expected %x:%x, got %x:%x", testCase.offset, testCase.size, offset, size)
|
H A D | macho_test.go | 49 for i, testCase := range testCases { 51 file, err := extractMachoSymbols(testCase.file) 55 offset, size, err := findSymbol(file, testCase.symbol) 59 if offset != testCase.offset || size != testCase.size { 60 t.Errorf("expected %x:%x, got %x:%x", testCase.offset, testCase.size, offset, size)
|
/aosp12/build/soong/cc/config/ |
H A D | bp2build_test.go | 77 for _, testCase := range testCases { 78 t.Run(testCase.description, func(t *testing.T) { 79 output := expandVar(testCase.toExpand, testCase.exportedVars) 80 if len(output) != len(testCase.expectedValues) { 81 t.Errorf("Expected %d values, got %d", len(testCase.expectedValues), len(output)) 84 expectedValue := testCase.expectedValues[i]
|
/aosp12/frameworks/base/test-runner/src/junit/textui/ |
H A D | TestRunner.java | 153 String testCase= ""; in start() local 161 testCase= extractClassName(args[++i]); in start() 165 testCase= arg.substring(0, lastIndex); in start() 170 testCase= args[i]; in start() 173 if (testCase.equals("")) in start() 178 return runSingleMethod(testCase, method, wait); in start() 179 Test suite= getTest(testCase); in start() 186 …protected TestResult runSingleMethod(String testCase, String method, boolean wait) throws Exceptio… in runSingleMethod() argument 187 Class<? extends TestCase> testClass= loadSuiteClass(testCase).asSubclass(TestCase.class); in runSingleMethod()
|