/build/soong/rust/ |
D | test.go | 75 func (test *testDecorator) dataPaths() []android.DataPath { 76 return test.data 79 func (test *testDecorator) nativeCoverage() bool { 83 func (test *testDecorator) testHarness() bool { 84 return BoolDefault(test.Properties.Test_harness, true) 97 test := &testDecorator{ 103 module.compiler = test 104 return module, test 107 func (test *testDecorator) compilerProps() []interface{} { 108 return append(test.binaryDecorator.compilerProps(), &test.Properties) [all …]
|
/build/soong/cc/ |
D | test.go | 176 func (test *testBinary) testPerSrc() bool { 177 return Bool(test.Properties.Test_per_src) 180 func (test *testBinary) srcs() []string { 181 return test.baseCompiler.Properties.Srcs 184 func (test *testBinary) dataPaths() []android.DataPath { 185 return test.data 188 func (test *testBinary) isAllTestsVariation() bool { 189 stem := test.binaryDecorator.Properties.Stem 193 func (test *testBinary) setSrc(name, src string) { 194 test.baseCompiler.Properties.Srcs = []string{src} [all …]
|
D | test_data_test.go | 39 test { 62 test { 82 test { 101 test { 118 for _, test := range testDataTests { 119 t.Run(test.name, func(t *testing.T) { 121 "dir/Android.bp": []byte(test.modules), 138 if len(got) != len(test.data) { 140 len(test.data), len(got)) 144 if i >= len(test.data) { [all …]
|
/build/blueprint/proptools/ |
D | escape_test.go | 31 in: `test`, 32 out: `test`, 36 in: `$test`, 37 out: `$$test`, 41 in: `test$`, 42 out: `test$$`, 46 in: `$test$`, 47 out: `$$test$$`, 54 in: `test`, 55 out: `test`, [all …]
|
D | filter_test.go | 221 for _, test := range tests { 222 t.Run(test.name, func(t *testing.T) { 223 out, filtered := FilterPropertyStruct(reflect.TypeOf(test.in), 231 if filtered != test.filtered { 232 t.Errorf("expected filtered %v, got %v", test.filtered, filtered) 234 expected := reflect.TypeOf(test.out) 315 for _, test := range tests { 316 t.Run(test.name, func(t *testing.T) { 317 out, filtered := filterPropertyStruct(reflect.TypeOf(test.in), "", test.maxNameSize, 325 if filtered != test.filtered { [all …]
|
D | tag_test.go | 61 for _, test := range tests { 62 t.Run(test.field, func(t *testing.T) { 63 field, _ := reflect.TypeOf(testType{}).FieldByName(test.field) 64 if got := HasTag(field, "name", "value"); got != test.want { 65 t.Errorf(`HasTag(%q, "name", "value") = %v, want %v`, field.Tag, got, test.want) 94 for _, test := range tests { 95 b.Run(test.field, func(b *testing.B) { 96 field, _ := reflect.TypeOf(testType{}).FieldByName(test.field) 191 for _, test := range tests { 192 t.Run(test.name, func(t *testing.T) { [all …]
|
/build/soong/python/ |
D | test.go | 69 func (test *testDecorator) bootstrapperProps() []interface{} { 70 return append(test.binaryDecorator.bootstrapperProps(), &test.testProperties) 73 func (test *testDecorator) install(ctx android.ModuleContext, file android.Path) { 74 test.testConfig = tradefed.AutoGenPythonBinaryHostTestConfig(ctx, test.testProperties.Test_config, 75 test.testProperties.Test_config_template, test.binaryDecorator.binaryProperties.Test_suites, 76 test.binaryDecorator.binaryProperties.Auto_gen_config) 78 test.binaryDecorator.pythonInstaller.dir = "nativetest" 79 test.binaryDecorator.pythonInstaller.dir64 = "nativetest64" 81 test.binaryDecorator.pythonInstaller.relative = ctx.ModuleName() 83 test.binaryDecorator.pythonInstaller.install(ctx, file) [all …]
|
/build/soong/android/ |
D | expand_test.go | 166 for _, test := range expandTestCases { 167 got, err := Expand(test.in, func(s string) (string, error) { 171 if err != nil && !test.err { 172 t.Errorf("%q: unexpected error %s", test.in, err.Error()) 173 } else if err == nil && test.err { 174 t.Errorf("%q: expected error, got %q", test.in, got) 175 } else if !test.err && got != test.out { 176 t.Errorf("%q: expected %q, got %q", test.in, test.out, got) 182 for _, test := range expandTestCases { 183 got, err := ExpandNinjaEscaped(test.in, expander) [all …]
|
D | bazel_test.go | 67 for _, test := range testCases { 68 if !bp2buildDefaultTrueRecursively(test.packageDir, test.prefixes) { 69 …t.Errorf("Expected to convert all modules in %s based on %v, but failed.", test.packageDir, test.p… 129 for _, test := range testCases { 130 if bp2buildDefaultTrueRecursively(test.packageDir, test.prefixes) { 131 …t.Errorf("Expected to allow module opt-in in %s based on %v, but failed.", test.packageDir, test.p…
|
D | package_test.go | 62 for _, test := range packageTests { 63 t.Run(test.name, func(t *testing.T) { 67 test.fs.AddToFixture(), 69 ExtendWithErrorHandler(FixtureExpectsAllErrorsToMatchAPattern(test.expectedErrors)).
|
/build/blueprint/pathtools/ |
D | fs_test.go | 96 for _, test := range testCases { 97 t.Run(test.from, func(t *testing.T) { 98 got := mock.followSymlinks(test.from) 99 if got != test.to { 100 t.Errorf("want: %v, got %v", test.to, got) 190 for _, test := range testCases { 191 t.Run(test.name, func(t *testing.T) { 192 got, err := fs.IsDir(filepath.Join(dir, test.name)) 193 checkErr(t, test.err, err) 194 if got != test.isDir { [all …]
|
D | lists_test.go | 33 for _, test := range testCases { 34 t.Run(test.from, func(t *testing.T) { 35 got := ReplaceExtension(test.from, test.ext) 36 if got != test.to { 37 t.Errorf("ReplaceExtension(%v, %v) = %v; want: %v", test.from, test.ext, got, test.to)
|
/build/soong/bpfix/bpfix/ |
D | bpfix_test.go | 251 for _, test := range tests { 252 t.Run(test.name, func(t *testing.T) { 253 runPass(t, test.in, test.out, func(fixer *Fixer) error { 337 for _, test := range tests { 338 t.Run(test.name, func(t *testing.T) { 339 runPass(t, test.in, test.out, func(fixer *Fixer) error { 490 for _, test := range tests { 491 t.Run(test.name, func(t *testing.T) { 492 runPass(t, test.in, test.out, func(fixer *Fixer) error { 550 for _, test := range tests { [all …]
|
/build/soong/androidmk/parser/ |
D | parser_test.go | 40 for _, test := range parserTestCases { 41 t.Run(test.name, func(t *testing.T) { 42 p := NewParser(test.name, bytes.NewBufferString(test.in)) 49 if len(got) != len(test.out) { 50 t.Fatalf("length mismatch, expected %d nodes, got %d", len(test.out), len(got)) 54 if got[i].Dump() != test.out[i].Dump() { 56 i, test.out[i], test.out[i].Dump(), got[i], got[i].Dump())
|
D | make_strings_test.go | 81 for _, test := range splitNTestCases { 82 got := test.in.SplitN(test.sep, test.n) 84 expectedString := dumpArray(test.expected) 110 for _, test := range valueTestCases { 111 got := test.in.Value(nil) 112 if got != test.expected { 113 t.Errorf("\nwith: %q\nwant: %q\n got: %q", test.in.Dump(), test.expected, got) 210 for _, test := range splitWordsTestCases { 211 got := test.in.Words() 213 expectedString := dumpArray(test.expected) [all …]
|
/build/make/tools/rbcrun/testdata/ |
D | load.star | 3 load(":module1.star", test1="test") 4 load("//testdata:module2.star", test2="test") 5 load(":module3|test", test3="test") 8 def test(): 14 test()
|
/build/soong/partner/androidmk/ |
D | androidmk_test.go | 38 LOCAL_MODULE := test 57 for i, test := range testCases { 58 expected, err := bpfix.Reformat(test.expected) 63 …got, errs := androidmk.ConvertFile(fmt.Sprintf("<testcase %d>", i), bytes.NewBufferString(test.in)) 70 …ed testcase '%s'\ninput:\n%s\n\nexpected:\n%s\ngot:\n%s\n", test.desc, strings.TrimSpace(test.in),…
|
/build/soong/response/ |
D | response_test.go | 34 name: "single quoting test case 2", 39 name: "single quoting test case 3", 44 name: "single quoting test case 4", 49 name: "none quoting test case 1", 54 name: "none quoting test case 2", 59 name: "none quoting test case 3",
|
/build/soong/cmd/diff_target_files/ |
D | glob_test.go | 147 for _, test := range testCases { 148 t.Run(test.pattern+","+test.name, func(t *testing.T) { 149 match, err := Match(test.pattern, test.name) 153 if match != test.match { 154 t.Errorf("want: %v, got %v", test.match, match)
|
D | compare_test.go | 120 for _, test := range testCases { 121 t.Run(test.name, func(t *testing.T) { 122 diff := diffTargetFilesLists(test.a, test.b) 124 if !reflect.DeepEqual(diff, test.diff) { 127 …t.Errorf(" want %v, %v, %v", test.diff.modified, test.diff.onlyInA, test.diff.onl…
|
/build/soong/java/ |
D | app_test.go | 363 for _, test := range testCases { 364 t.Run(test.name, func(t *testing.T) { 366 if test.expectedError != "" { 367 errorHandler = android.FixtureExpectsAtLeastOneErrorMatchingPattern(test.expectedError) 373 ExtendWithErrorHandler(errorHandler).RunTestWithBp(t, test.bp) 644 for _, test := range testCases { 645 t.Run(test.name, func(t *testing.T) { 646 m := ctx.ModuleForTests(test.name, "android_common") 650 if len(test.assetPackages) > 0 { 657 if test.assetFlag != "" { [all …]
|
/build/blueprint/parser/ |
D | printer_test.go | 226 test /* test */ { 246 test /* test */ { 300 test { 311 test {} 326 test { 337 test {} 350 test // test 357 test { // test
|
/build/soong/genrule/ |
D | genrule_test.go | 438 for _, test := range testcases { 439 t.Run(test.name, func(t *testing.T) { 442 bp += test.prop 446 if test.err != "" { 447 expectedErrors = append(expectedErrors, regexp.QuoteMeta(test.err)) 453 variables.Allow_missing_dependencies = proptools.BoolPtr(test.allowMissingDependencies) 456 ctx.SetAllowMissingDependencies(test.allowMissingDependencies) 467 android.AssertStringEquals(t, "raw commands", test.expect, gen.rawCommands[0]) 529 for _, test := range testcases { 530 t.Run(test.name, func(t *testing.T) { [all …]
|
/build/soong/zip/ |
D | zip_test.go | 432 for _, test := range testCases { 433 t.Run(test.name, func(t *testing.T) { 434 if test.args.Error() != nil { 435 t.Fatal(test.args.Error()) 439 args.FileArgs = test.args.FileArgs() 440 args.CompressionLevel = test.compressionLevel 441 args.EmulateJar = test.emulateJar 442 args.AddDirectoryEntriesToZip = test.dirEntries 443 args.NonDeflatedFiles = test.nonDeflatedFiles 444 args.ManifestSourcePath = test.manifest [all …]
|
/build/soong/cmd/merge_zips/ |
D | merge_zips_test.go | 241 for _, test := range testCases { 242 t.Run(test.name, func(t *testing.T) { 243 inputZips := make([]InputZip, len(test.in)) 244 for i, in := range test.in { 248 want := testZipEntriesToBuf(test.out) 254 test.sort, test.jar, false, test.stripDirEntries, test.ignoreDuplicates, 255 test.stripFiles, test.stripDirs, test.zipsToNotStrip) 262 if test.err != "" { 264 t.Fatal("missing err, expected: ", test.err) 265 } else if !strings.Contains(strings.ToLower(err.Error()), strings.ToLower(test.err)) { [all …]
|