Home
last modified time | relevance | path

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

12345

/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 …]
/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/blueprint/pathtools/
Dfs_test.go99 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 …]
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/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)
/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)
Dsdk_version_test.go85 if got := SdkSpecFromWithConfig(config, tc.input).String(); tc.expected != got {
86 t.Errorf("Expected %v, got %v", tc.expected, got)
Dtest_suites_test.go76 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/
Dutil_test.go56 got := string(stripAnsiEscapes([]byte(tc.input)))
57 if got != tc.output {
61 " got: %#v", tc.input, tc.output, got)
/build/soong/androidmk/parser/
Dparser_test.go109 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())
Dmake_strings_test.go92 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/
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())
Dgenrule_test.go70 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/
Dmkfile_test.go51 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/
Dmerge_module_info_json_test.go53 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/
Dzip_test.go45 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/
Djar_test.go78 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/
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/blueprint/proptools/
Dtag_test.go64 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)
Dproptools_test.go71 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)
Dclone_test.go318 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/
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.go66got, 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/
Dmodify_test.go61 got := buf.String()
62 if got != expected {
63 t.Errorf("expected %q, got %q", expected, got)
/build/bazel/rules/
Dlinker_config_test.bzl25 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))

12345