/build/soong/ui/build/ |
D | environment_test.go | 26 got := initial.Environ() 27 if len(got) != 1 || got[0] != "TEST2=0" { 28 t.Errorf("Expected [TEST2=0], got: %v", got) 35 got := initial.Environ() 36 if len(got) != 1 || got[0] != "TEST2=0" { 37 t.Errorf("Expected [TEST2=0], got: %v", got) 44 got := initial.Environ() 45 if len(got) != 1 || got[0] != "TEST=0" { 46 t.Errorf("Expected [TEST=0], got: %v", got) 53 got := initial.Environ() [all …]
|
/build/soong/remoteexec/ |
D | remoteexec_test.go | 60 if got := test.params.Template(); got != test.want { 61 t.Errorf("Template() returned\n%s\nwant\n%s", got, test.want) 78 if got := params.NoVarTemplate(DefaultWrapperPath); got != want { 79 t.Errorf("NoVarTemplate() returned\n%s\nwant\n%s", got, want) 95 if got := r.Template(); got != want { 96 t.Fatalf("Template() returned\n%s\nwant\n%s", got, want)
|
/build/blueprint/pathtools/ |
D | fs_test.go | 99 got := mock.followSymlinks(test.from) 100 if got != test.to { 101 t.Errorf("want: %v, got %v", test.to, got) 193 got, err := fs.IsDir(filepath.Join(dir, test.name)) 195 if got != test.isDir { 196 t.Errorf("want: %v, got %v", test.isDir, got) 235 got, err := fs.ListDirsRecursive(filepath.Join(dir, test.name), FollowSymlinks) 241 if !reflect.DeepEqual(got, want) { 242 t.Errorf("want: %v, got %v", want, got) 281 got, err := fs.ListDirsRecursive(filepath.Join(dir, test.name), DontFollowSymlinks) [all …]
|
D | lists_test.go | 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/java/ |
D | jacoco_test.go | 57 got, err := jacocoFilterToSpec(testCase.in) 61 if got != testCase.out { 62 t.Errorf("expected %q got %q", testCase.out, got) 99 got := jacocoFiltersToZipCommand(testCase.includes, testCase.excludes) 100 if got != testCase.out { 101 t.Errorf("expected %q got %q", testCase.out, got)
|
/build/soong/android/ |
D | expand_test.go | 167 got, err := Expand(test.in, func(s string) (string, error) { 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) 183 got, err := ExpandNinjaEscaped(test.in, expander) 187 t.Errorf("%q: expected error, got %q", test.in, got) 188 } else if !test.err && got != test.out_escaped { 189 t.Errorf("%q: expected %q, got %q", test.in, test.out, got)
|
D | sdk_version_test.go | 85 if got := SdkSpecFromWithConfig(config, tc.input).String(); tc.expected != got { 86 t.Errorf("Expected %v, got %v", tc.expected, got)
|
D | test_suites_test.go | 76 got := "" 78 got = ContentFromFileRuleForTests(t, ctx.TestContext, config.MaybeOutput(output)) 81 if want != got { 82 t.Errorf("want %q, got %q", want, got)
|
/build/soong/ui/terminal/ |
D | util_test.go | 56 got := string(stripAnsiEscapes([]byte(tc.input))) 57 if got != tc.output { 61 " got: %#v", tc.input, tc.output, got)
|
/build/soong/androidmk/parser/ |
D | parser_test.go | 109 got, errs := p.Parse() 115 if len(got) != len(test.out) { 116 t.Fatalf("length mismatch, expected %d nodes, got %d", len(test.out), len(got)) 119 for i := range got { 120 if got[i].Dump() != test.out[i].Dump() { 122 i, test.out[i], test.out[i].Dump(), got[i], got[i].Dump())
|
D | make_strings_test.go | 92 got := test.in.SplitN(test.sep, test.n) 93 gotString := dumpArray(got) 121 got := test.in.Value(nil) 122 if got != test.expected { 123 t.Errorf("\nwith: %q\nwant: %q\n got: %q", test.in.Dump(), test.expected, got) 221 got := test.in.Words() 222 gotString := dumpArray(got)
|
/build/soong/cc/ |
D | test_data_test.go | 137 got := foo.Module().(*testDataTest).data 138 if len(got) != len(test.data) { 140 len(test.data), len(got)) 143 for i := range got { 149 if test.data[i].file != got[i].Rel() || 150 path != got[i].String() { 153 got[i].String(), got[i].Rel())
|
D | genrule_test.go | 70 t.Errorf(`want arm inputs %v, got %v`, expected, gen.Implicits.Strings()) 76 t.Errorf(`want arm64 inputs %v, got %v`, expected, gen.Implicits.Strings()) 110 var got []string 112 got = append(got, input.Base()) 114 if !reflect.DeepEqual(expected, got[:len(expected)]) { 115 t.Errorf(`want inputs %v, got %v`, expected, got)
|
/build/bazel/mkcompare/ |
D | mkfile_test.go | 51 got, err := ParseMkFile(strings.NewReader(tt.source)) 56 if !cmp.Equal(got.Modules, tt.want.Modules) { 57 t.Errorf("ParseMkFile() got = %v, want %v, \ndiff: %s", got.Modules, tt.want.Modules, 58 cmp.Diff(got, tt.want))
|
/build/soong/cmd/merge_module_info_json/ |
D | merge_module_info_json_test.go | 53 if got := combine(tt.old, tt.new); !reflect.DeepEqual(got, tt.want) { 54 t.Errorf("combine() = %v, want %v", got, tt.want)
|
/build/soong/third_party/zip/ |
D | zip_test.go | 45 if got := len(zr.File); got != nFiles { 46 t.Fatalf("File contains %d files, want %d", got, nFiles) 72 if got, want := fh2.Name, fh.Name; got != want { 73 t.Errorf("Name: got %s, want %s\n", got, want) 75 if got, want := fh2.UncompressedSize, wantUncompressedSize; got != want { 76 t.Errorf("UncompressedSize: got %d, want %d\n", got, want) 78 if got, want := fh2.UncompressedSize64, wantUncompressedSize64; got != want { 79 t.Errorf("UncompressedSize64: got %d, want %d\n", got, want) 81 if got, want := fh2.ModifiedTime, fh.ModifiedTime; got != want { 82 t.Errorf("ModifiedTime: got %d, want %d\n", got, want) [all …]
|
/build/soong/jar/ |
D | jar_test.go | 78 got, err := JavaPackage(buf, "<test>") 83 if got != tt.want { 84 t.Errorf("JavaPackage() = %v, want %v", got, tt.want) 152 if got := javaIdentRune(ch, i); got != want { 153 t.Errorf("javaIdentRune() = %v, want %v", got, want)
|
/build/blueprint/ |
D | glob_test.go | 33 t.Error(`expected ["a/a", "a/b"], got`, matches) 44 t.Error(`expected ["a/a", "a/b"], got`, matches) 53 t.Error(`expected ["a/a"], got`, matches)
|
/build/blueprint/proptools/ |
D | tag_test.go | 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) 193 if got := PropertyIndexesWithTag(test.ps, "name", "value"); !reflect.DeepEqual(got, test.want) { 194 t.Errorf("PropertyIndexesWithTag() = %v, want %v", got, test.want)
|
D | proptools_test.go | 71 if got := PropertyNameForField(tt.input); got != tt.want { 72 t.Errorf("PropertyNameForField(%v) = %v, want %v", tt.input, got, tt.want) 112 if got := FieldNameForProperty(tt.input); got != tt.want { 113 t.Errorf("FieldNameForProperty(%v) = %v, want %v", tt.input, got, tt.want)
|
D | clone_test.go | 318 got := CloneProperties(reflect.ValueOf(testCase.in)).Interface() 320 if !reflect.DeepEqual(testCase.out, got) { 324 t.Errorf(" got: %#v", got) 326 if testCase.out == got && !isPointerToEmptyStruct(testCase.out) { 330 t.Errorf(" got: %s", got) 546 got := CloneEmptyProperties(reflect.ValueOf(testCase.in)).Interface() 548 if !reflect.DeepEqual(testCase.out, got) { 552 t.Errorf(" got: %#v", got) 561 got := CloneProperties(reflect.ValueOf(testCase.in)).Interface() 562 ZeroProperties(reflect.ValueOf(got)) [all …]
|
/build/soong/cmd/multiproduct_kati/ |
D | main_test.go | 85 got := splitList(input, tc.shardCount) 87 if !reflect.DeepEqual(got, tc.want) { 89 tc.inputCount, tc.shardCount, tc.want, got)
|
/build/soong/partner/androidmk/ |
D | androidmk_test.go | 66 …got, errs := androidmk.ConvertFile(fmt.Sprintf("<testcase %d>", i), bytes.NewBufferString(test.in)) 72 if got != expected { 73 …s'\ninput:\n%s\n\nexpected:\n%s\ngot:\n%s\n", test.desc, strings.TrimSpace(test.in), expected, got)
|
/build/blueprint/parser/ |
D | modify_test.go | 61 got := buf.String() 62 if got != expected { 63 t.Errorf("expected %q, got %q", expected, got)
|
/build/bazel/rules/ |
D | linker_config_test.bzl | 25 asserts.equals(env, 1, len(actions), "expected 1 action got {}".format(actions)) 29 asserts.equals(env, 1, len(out_files), "expected 1 out file got {}".format(out_files)) 35 "expected source file {} got {}".format(SRC, in_file.basename), 41 "expected out file {} got {}".format(OUT_EXP, out_files[0].basename), 51 …"expected PrebuiltFileInfo filename to be {} but got {}".format("linkerconfig.pb", prebuilt_file_… 57 "expected PrebuiltFileInfo dir to be {} but got {}".format("etc", prebuilt_file_info.dir), 63 … "expected PrebuiltFileInfo src to be {} but got {}".format(out_files[0], prebuilt_file_info.src), 91 asserts.true(env, len(in_files) > 0, "expected at least 1 input file got {}".format(in_files)) 94 asserts.equals(env, 6, len(args), "expected 4 args got {}".format(args))
|