/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/blueprint/pathtools/ |
D | fs_test.go | 98 got := mock.followSymlinks(test.from) 99 if got != test.to { 100 t.Errorf("want: %v, got %v", test.to, got) 192 got, err := fs.IsDir(filepath.Join(dir, test.name)) 194 if got != test.isDir { 195 t.Errorf("want: %v, got %v", test.isDir, got) 234 got, err := fs.ListDirsRecursive(filepath.Join(dir, test.name), FollowSymlinks) 240 if !reflect.DeepEqual(got, want) { 241 t.Errorf("want: %v, got %v", want, got) 280 got, err := fs.ListDirsRecursive(filepath.Join(dir, test.name), DontFollowSymlinks) [all …]
|
/build/soong/remoteexec/ |
D | remoteexec_test.go | 62 if got := test.params.Template(); got != test.want { 63 t.Errorf("Template() returned\n%s\nwant\n%s", got, test.want) 80 if got := params.NoVarTemplate(android.NullConfig("")); got != want { 81 t.Errorf("NoVarTemplate() returned\n%s\nwant\n%s", got, want) 97 if got := r.Template(); got != want { 98 t.Fatalf("Template() returned\n%s\nwant\n%s", got, want)
|
/build/blueprint/proptools/ |
D | escape_test.go | 96 got := NinjaEscape(testCase.in) 97 if got != testCase.out { 98 t.Errorf("%s: expected `%s` got `%s`", testCase.name, testCase.out, got) 105 got := ShellEscape(testCase.in) 106 if got != testCase.out { 107 t.Errorf("%s: expected `%s` got `%s`", testCase.name, testCase.out, got) 118 got, err := exec.Command("/bin/sh", "-c", cmd).Output() 122 if string(got) != testCase.in { 123 t.Errorf("%s: expected `%s` got `%s`", testCase.name, testCase.in, got)
|
D | proptools_test.go | 68 if got := PropertyNameForField(tt.input); got != tt.want { 69 t.Errorf("PropertyNameForField(%v) = %v, want %v", tt.input, got, tt.want) 109 if got := FieldNameForProperty(tt.input); got != tt.want { 110 t.Errorf("FieldNameForProperty(%v) = %v, want %v", tt.input, got, tt.want)
|
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) 135 if got := PropertyIndexesWithTag(test.ps, "name", "value"); !reflect.DeepEqual(got, test.want) { 136 t.Errorf("PropertyIndexesWithTag() = %v, want %v", got, test.want)
|
D | clone_test.go | 280 got := CloneProperties(reflect.ValueOf(testCase.in)).Interface() 282 if !reflect.DeepEqual(testCase.out, got) { 286 t.Errorf(" got: %#v", got) 502 got := CloneEmptyProperties(reflect.ValueOf(testCase.in)).Interface() 504 if !reflect.DeepEqual(testCase.out, got) { 508 t.Errorf(" got: %#v", got) 517 got := CloneProperties(reflect.ValueOf(testCase.in)).Interface() 518 ZeroProperties(reflect.ValueOf(got)) 520 if !reflect.DeepEqual(testCase.out, got) { 524 t.Errorf(" got: %#v", got)
|
D | extend_test.go | 1057 got := testCase.in1 1064 err = AppendProperties(got, testCase.in2, testCase.filter) 1067 err = PrependProperties(got, testCase.in2, testCase.filter) 1070 err = ExtendProperties(got, testCase.in2, testCase.filter, OrderReplace) 1073 check(t, testType, testString, got, err, testCase.out, testCase.err) 1081 got := testCase.in1 1108 err = ExtendProperties(got, testCase.in2, testCase.filter, order) 1110 check(t, testType, testString, got, err, testCase.out, testCase.err) 1394 got := testCase.in1 1401 err = AppendMatchingProperties(got, testCase.in2, testCase.filter) [all …]
|
/build/soong/android/soongconfig/ |
D | modules_test.go | 61 if got := CanonicalizeToProperty(tt.arg); got != tt.want { 62 t.Errorf("canonicalizeToProperty() = %v, want %v", got, tt.want) 177 got := "" 179 got = typ.String() 181 if got != tt.want { 182 t.Errorf("typeForPropertyFromPropertyStruct() = %v, want %v", got, tt.want) 240 got := "" 242 got = typ.String() 244 if !reflect.DeepEqual(got, tt.want) { 245 t.Errorf("createAffectablePropertiesType() = %v, want %v", got, tt.want)
|
/build/soong/androidmk/parser/ |
D | parser_test.go | 43 got, errs := p.Parse() 49 if len(got) != len(test.out) { 50 t.Fatalf("length mismatch, expected %d nodes, got %d", len(test.out), len(got)) 53 for i := range 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 | 93 got := test.in.SplitN(test.sep, test.n) 94 gotString := dumpArray(got) 122 got := test.in.Value(nil) 123 if got != test.expected { 124 t.Errorf("\nwith: %q\nwant: %q\n got: %q", test.in.Dump(), test.expected, got) 165 got := test.in.Words() 166 gotString := dumpArray(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)
|
/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/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())
|
/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 …]
|
D | android_test.go | 71 got := stripExtras(testcase.in) 72 if !bytes.Equal(got, testcase.out) { 73 …led testcase %s\ninput: %v\n want: %v\n got: %v\n", testcase.name, testcase.in, testcase.out, got)
|
/build/soong/jar/ |
D | jar_test.go | 68 got, err := JavaPackage(buf, "<test>") 73 if got != tt.want { 74 t.Errorf("JavaPackage() = %v, want %v", got, tt.want) 142 if got := javaIdentRune(ch, i); got != want { 143 t.Errorf("javaIdentRune() = %v, want %v", got, want)
|
D | jar.go | 190 return "", fmt.Errorf(`expected first token of java file to be "package", got %q`, s.TokenText()) 199 return "", fmt.Errorf(`expected first token of java file to be "package", got %q`, s.TokenText()) 209 return "", fmt.Errorf(`expected "package <package>;", got "package %s%s"`, pkg, s.TokenText()) 222 return "", fmt.Errorf(`expected "package <package>;", got "package %s%s"`, pkg, s.TokenText())
|
/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/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)
|
D | splice_modules_test.go | 118 got, gotAt := spliceModules(in, testCase.at, testCase.with) 119 if !reflect.DeepEqual(got, testCase.out) { 123 t.Errorf(" got: %v", got) 131 if sameArray(origIn, got) != !testCase.reallocate {
|
/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 | 63 …got, errs := androidmk.ConvertFile(fmt.Sprintf("<testcase %d>", i), bytes.NewBufferString(test.in)) 69 if got != expected { 70 …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/soong/zip/ |
D | zip_test.go | 485 got := files[i] 487 if want.Name != got.Name { 488 t.Errorf("incorrect file %d want %q got %q", i, want.Name, got.Name) 492 if want.UncompressedSize64 != got.UncompressedSize64 { 494 want.UncompressedSize64, got.UncompressedSize64) 497 if want.ExternalAttrs != got.ExternalAttrs { 499 want.ExternalAttrs, got.ExternalAttrs) 502 if want.CRC32 != got.CRC32 { 504 want.CRC32, got.CRC32) 507 if want.Method != got.Method { [all …]
|