Home
last modified time | relevance | path

Searched refs:got (Results 1 – 25 of 55) sorted by relevance

123

/build/soong/ui/build/
Denvironment_test.go26 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 …]
Dupload_test.go65 got := pruneMetricsFiles([]string{rootDir})
67 sort.Strings(got)
70 if !reflect.DeepEqual(got, want) {
71 t.Errorf("got %q, want %q after pruning metrics files", got, want)
170 got := err.Error()
171 if !strings.Contains(got, tt.expectedErr) {
172 t.Errorf("got %q, want %q to be contained in error", got, tt.expectedErr)
/build/blueprint/pathtools/
Dfs_test.go98 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 …]
Dlists_test.go35 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/remoteexec/
Dremoteexec_test.go60 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/soong/androidmk/parser/
Dparser_test.go43 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())
Dmake_strings_test.go82 got := test.in.SplitN(test.sep, test.n)
83 gotString := dumpArray(got)
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)
211 got := test.in.Words()
212 gotString := dumpArray(got)
/build/soong/java/
Djacoco_test.go57 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)
Dsystemserver_classpath_fragment_test.go88 got := entries[0]
90 if value, ok := got.EntryMap[k]; ok {
93 t.Errorf("No %s defined, saw %q", k, got.EntryMap)
/build/blueprint/proptools/
Dproptools_test.go68 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)
Dclone_test.go280 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)
Dtypeequal_test.go141 got := TypeEqual(testCase.in1, testCase.in2)
143 if got != testCase.out {
147 t.Errorf(" got: %t", got)
/build/soong/android/
Dexpand_test.go167 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)
Dbazel_handler_test.go95 got := bazelContext.BuildStatementsToRegister()
96 if want := 1; len(got) != want {
97 t.Errorf("Expected %d registered build statements, got %#v", want, got)
/build/soong/cc/
Dtest_data_test.go137 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/android/soongconfig/
Dmodules_test.go63 if got := CanonicalizeToProperty(tt.arg); got != tt.want {
64 t.Errorf("canonicalizeToProperty() = %v, want %v", got, tt.want)
179 got := ""
181 got = typ.String()
183 if got != tt.want {
184 t.Errorf("typeForPropertyFromPropertyStruct() = %v, want %v", got, tt.want)
280 got := ""
282 got = typ.String()
284 if !reflect.DeepEqual(got, tt.want) {
285 t.Errorf("createAffectablePropertiesType() = %v, want %v", got, tt.want)
/build/soong/jar/
Djar_test.go68 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)
Djar.go190 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/blueprint/
Dglob_test.go33 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/soong/cmd/multiproduct_kati/
Dmain_test.go85 got := splitList(input, tc.shardCount)
87 if !reflect.DeepEqual(got, tc.want) {
89 tc.inputCount, tc.shardCount, tc.want, got)
/build/soong/partner/androidmk/
Dandroidmk_test.go63got, 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/
Dmodify_test.go61 got := buf.String()
62 if got != expected {
63 t.Errorf("expected %q, got %q", expected, got)
Dsort_test.go48 if got := numericStringLess(a, b); got != want {
49 t.Errorf("want numericStringLess(%v, %v) = %v, got %v", a, b, want, got)
/build/soong/zip/
Dzip_test.go507 got := files[i]
509 if want.Name != got.Name {
510 t.Errorf("incorrect file %d want %q got %q", i, want.Name, got.Name)
514 if want.UncompressedSize64 != got.UncompressedSize64 {
516 want.UncompressedSize64, got.UncompressedSize64)
519 if want.ExternalAttrs != got.ExternalAttrs {
521 want.ExternalAttrs, got.ExternalAttrs)
524 if want.CRC32 != got.CRC32 {
526 want.CRC32, got.CRC32)
529 if want.Method != got.Method {
[all …]
/build/blueprint/bootstrap/bpdoc/
Dbpdoc_test.go47 got := []string{}
49 got = append(got, s.nestPoint)
52 if !reflect.DeepEqual(got, expected) {
53 t.Errorf("Expected nested properties:\n\t %q,\n but got\n\t %q", expected, got)

123