Home
last modified time | relevance | path

Searched refs:Errorf (Results 1 – 25 of 72) sorted by relevance

123

/build/blueprint/
Dninja_strings_test.go113 t.Errorf("incorrect variable list:")
114 t.Errorf(" input: %q", testCase.input)
115 t.Errorf(" expected: %#v", expectedVars)
116 t.Errorf(" got: %#v", output.variables)
119 t.Errorf("incorrect string list:")
120 t.Errorf(" input: %q", testCase.input)
121 t.Errorf(" expected: %#v", testCase.strs)
122 t.Errorf(" got: %#v", output.strings)
130 t.Errorf("unexpected error:")
131 t.Errorf(" input: %q", testCase.input)
[all …]
Dunpack_test.go226 Err: fmt.Errorf("filtered field nested.foo cannot be set in a Blueprint file"),
367 t.Errorf("test case: %s", testCase.input)
368 t.Errorf("unexpected parse errors:")
370 t.Errorf(" %s", err)
380 t.Errorf("test case: %s", testCase.input)
381 t.Errorf("unexpected unpack errors:")
383 t.Errorf(" %s", err)
387 t.Errorf("test case: %s", testCase.input)
388 t.Errorf("incorrect errors:")
389 t.Errorf(" expected: %+v", testCase.errs)
[all …]
Dunpack.go67 Err: fmt.Errorf("unrecognized property %q", name),
93 Err: fmt.Errorf("property %q already defined", name),
97 Err: fmt.Errorf("<-- previous definition here"),
140 panic(fmt.Errorf("field %s is not settable", propertyName))
151 panic(fmt.Errorf("field %s is a non-string slice", propertyName))
155 panic(fmt.Errorf("field %s contains a nil interface", propertyName))
160 panic(fmt.Errorf("field %s contains a non-pointer interface", propertyName))
167 panic(fmt.Errorf("field %s contains a nil pointer", propertyName))
173 panic(fmt.Errorf("field %s contains a pointer to %s", propertyName, ptrKind))
178 panic(fmt.Errorf(`int field %s must be tagged blueprint:"mutated"`, propertyName))
[all …]
Dninja_defs.go142 return nil, fmt.Errorf("encountered rule params with no command " +
147 return nil, fmt.Errorf("Pool %s is not visible in this scope", r.Pool)
152 return nil, fmt.Errorf("error parsing Command param: %s", err)
159 return nil, fmt.Errorf("error parsing Depfile param: %s", err)
171 return nil, fmt.Errorf("error parsing Description param: %s", err)
187 return nil, fmt.Errorf("error parsing Rspfile param: %s", err)
195 return nil, fmt.Errorf("error parsing RspfileContent param: %s",
203 return nil, fmt.Errorf("error parsing CommandDeps param: %s", err)
272 return nil, fmt.Errorf("Rule %s is not visible in this scope", rule)
282 return nil, fmt.Errorf("error parsing Outputs param: %s", err)
[all …]
Dscope.go108 return nil, fmt.Errorf("variable name %q ends with a '.'", name)
111 return nil, fmt.Errorf("variable name %q contains multiple '.' "+
120 return nil, fmt.Errorf("cannot refer to unexported name %q", name)
130 return nil, fmt.Errorf("package %q does not contain variable %q",
143 return nil, fmt.Errorf("undefined variable %q", name)
204 return nil, fmt.Errorf("unknown imported package %q (missing call to "+
211 return fmt.Errorf("import %q is already defined in this scope", name)
221 return fmt.Errorf("variable %q is already defined in this scope", name)
231 return fmt.Errorf("pool %q is already defined in this scope", name)
241 return fmt.Errorf("rule %q is already defined in this scope", name)
[all …]
Dninja_strings.go151 return nil, fmt.Errorf("unexpected end of string after '$'")
156 return nil, fmt.Errorf("invalid character after '$' at byte "+
220 return nil, fmt.Errorf("empty variable name at byte offset %d",
235 return nil, fmt.Errorf("unexpected end of string in variable name")
239 return nil, fmt.Errorf("invalid character in variable name at "+
254 return nil, fmt.Errorf("error parsing element %d: %s", i, err)
281 return "", fmt.Errorf("no such global variable: %s", v)
302 return fmt.Errorf("%q contains an invalid Ninja name character "+
344 return fmt.Errorf("%q contains a '.' character", argName)
349 return fmt.Errorf("%q conflicts with Ninja built-in", argName)
Dsplice_modules_test.go111 t.Errorf("test case: %v, %v -> %v", testCase.in, testCase.replace, testCase.with)
112 t.Errorf("incorrect output:")
113 t.Errorf(" expected: %v", testCase.out)
114 t.Errorf(" got: %v", got)
117 t.Errorf("test case: %v, %v -> %v", testCase.in, testCase.replace, testCase.with)
122 t.Errorf(" expected to%s reallocate", not)
Dcontext_test.go88 t.Errorf("unexpected parse errors:")
90 t.Errorf(" %s", err)
97 t.Errorf("unexpected dep errors:")
99 t.Errorf(" %s", err)
Dpackage_ctx.go99 panic(fmt.Errorf("package %q already has a package context"))
231 panic(fmt.Errorf("package %q has no context", pkgPath))
247 panic(fmt.Errorf("package %q has no context", pkgPath))
307 err = fmt.Errorf("error parsing variable %s value: %s", v, err)
412 err = fmt.Errorf("error parsing variable %s value: %s", v, err)
426 panic(fmt.Errorf("method given for variable %s is not a function",
430 panic(fmt.Errorf("method for variable %s has %d inputs (should be 1)",
434 panic(fmt.Errorf("method for variable %s has %d outputs (should be 1)",
438 panic(fmt.Errorf("method for variable %s does not return a string",
519 panic(fmt.Errorf("error parsing PoolParams for %s: %s", p, err))
[all …]
/build/soong/cc/
Dcc_test.go50 t.Errorf("incorrect output:")
51 t.Errorf(" input: %#v", testCase.in)
52 t.Errorf(" expected: %#v", testCase.out)
53 t.Errorf(" got: %#v", out)
147 t.Errorf("incorrect output:")
148 t.Errorf(" input: %#v", testCase.in)
149 t.Errorf(" size: %d", testCase.size)
150 t.Errorf(" expected: %#v", testCase.out)
151 t.Errorf(" got: %#v", out)
/build/blueprint/parser/
Dprinter_test.go266 t.Errorf("test case: %s", in)
267 t.Errorf("unexpected errors:")
269 t.Errorf(" %s", err)
278 t.Errorf("test case: %s", in)
279 t.Errorf("unexpected error: %s", err)
284 t.Errorf("test case: %s", in)
285 t.Errorf(" expected: %s", expected)
286 t.Errorf(" got: %s", string(got))
Dparser_test.go482 t.Errorf("test case: %s", testCase.input)
483 t.Errorf("unexpected errors:")
485 t.Errorf(" %s", err)
493 t.Errorf("test case: %s", testCase.input)
494 t.Errorf("incorrect defintion %d:", i)
495 t.Errorf(" expected: %s", testCase.defs[i])
496 t.Errorf(" got: %s", file.Defs[i])
500 t.Errorf("test case: %s", testCase.input)
501 t.Errorf("length mismatch, expected %d definitions, got %d",
508 t.Errorf("test case: %s", testCase.input)
[all …]
/build/blueprint/proptools/
Dclone.go31 panic(fmt.Errorf("can't copy mismatching types (%s <- %s)",
54 panic(fmt.Errorf("can't copy field %q: slice elements are not strings", field.Name))
74 panic(fmt.Errorf("can't clone field %q: interface refers to a non-pointer",
78 panic(fmt.Errorf("can't clone field %q: interface points to a non-struct",
120 panic(fmt.Errorf("can't clone field %q: points to a %s",
124 panic(fmt.Errorf("unexpected kind for property struct field %q: %s",
154 panic(fmt.Errorf("can't zero field %q: interface refers to a non-pointer",
158 panic(fmt.Errorf("can't zero field %q: interface points to a non-struct",
172 panic(fmt.Errorf("can't zero field %q: points to a %s",
178 panic(fmt.Errorf("unexpected kind for property struct field %q: %s",
[all …]
Dclone_test.go254 t.Errorf("test case %s", testString)
255 t.Errorf("incorrect output")
256 t.Errorf(" expected: %#v", testCase.out)
257 t.Errorf(" got: %#v", got)
457 t.Errorf("test case %s", testString)
458 t.Errorf("incorrect output")
459 t.Errorf(" expected: %#v", testCase.out)
460 t.Errorf(" got: %#v", got)
473 t.Errorf("test case %s", testString)
474 t.Errorf("incorrect output")
[all …]
Dtypeequal_test.go144 t.Errorf("test case: %s", testString)
145 t.Errorf("incorrect output")
146 t.Errorf(" expected: %t", testCase.out)
147 t.Errorf(" got: %t", got)
/build/blueprint/pathtools/
Dglob_test.go428 t.Errorf(" pattern: %q", testCase.pattern)
430 t.Errorf("excludes: %q", testCase.excludes)
432 t.Errorf(" error: %s", err)
437 t.Errorf("incorrect matches list:")
438 t.Errorf(" pattern: %q", testCase.pattern)
440 t.Errorf("excludes: %q", testCase.excludes)
442 t.Errorf(" got: %#v", matches)
443 t.Errorf("expected: %#v", testCase.matches)
446 t.Errorf("incorrect dirs list:")
447 t.Errorf(" pattern: %q", testCase.pattern)
[all …]
/build/soong/common/
Dpaths_test.go135 t.Errorf("Uninitialized OptionalPath should not be valid")
138 t.Errorf("Uninitialized OptionalPath String() should return \"\", not %q", path.String())
142 t.Errorf("Expected a panic when calling Path() on an uninitialized OptionalPath")
155 t.Errorf("test case %s: %s", testType, testString)
158 t.Errorf("incorrect %s", s)
159 t.Errorf(" expected: %s", p(expected))
160 t.Errorf(" got: %s", p(got))
Dconfig.go103 return fmt.Errorf("config file: %s did not parse correctly: "+err.Error(), filename)
114 return fmt.Errorf("cannot marshal config data: %s", err.Error())
119 return fmt.Errorf("cannot create empty config file %s: %s\n", filename, err.Error())
125 return fmt.Errorf("default config file: %s could not be written: %s", filename, err.Error())
130 return fmt.Errorf("default config file: %s could not be written: %s", filename, err.Error())
164 return Config{}, fmt.Errorf("Build dir must not contain source directory")
/build/kati/
Drule_parser_test.go194 t.Errorf(`r.parse(%q, %v)=_, <nil>, want _, %q`, tc.in, tc.rhs, tc.err)
198 t.Errorf(`r.parse(%q, %v)=_, %s, want %s`, tc.in, tc.rhs, got, want)
203 t.Errorf(`r.parse(%q, %v)=_, %v; want nil error`, tc.in, tc.rhs, err)
207 t.Errorf(`r.parse(%q, %v); r=%#v, want %#v`, tc.in, tc.rhs, *got, tc.want)
211 t.Errorf(`r.parse(%q, %v)=<nil>; want=%#v`, tc.in, tc.rhs, tc.assign)
215 t.Errorf(`r.parse(%q, %v)=%#v; want=%#v`, tc.in, tc.rhs, got, want)
220 t.Errorf(`r.parse(%q, %v)=%v; want=<nil>`, tc.in, tc.rhs, assign)
Dstrutil_test.go51 t.Errorf(`splitSpaces(%q)=%q, want %q`, tc.in, got, tc.want)
88 t.Errorf(`wordScanner(%q)=%q, want %q`, tc.in, got, tc.want)
159 t.Errorf(`substPattern(%q,%q,%q)=%q, want %q`, tc.pat, tc.repl, tc.in, got, tc.want)
165 t.Errorf(`substPatternBytes(%q,%q,%q)=%q, want %q`, tc.pat, tc.repl, tc.in, got, tc.want)
214 t.Errorf("removeComment(%q)=%q, _; want=%q, _", tc.in, got, tc.want)
217 t.Errorf("removeComment(%q)=_, %t; want=_, %t", tc.in, removed, tc.removed)
250 t.Errorf("concatline(%q)=%q; want=%q\n", tc.in, got, tc.want)
Dshellutil_test.go39 t.Errorf("rot13(%q) got=%q; want=%q", tc.in, got, want)
88 t.Errorf("%s: matched %s but not compacted", tc.sharg, b.name)
92 t.Errorf("%s: format=%q, want=%q - %s", tc.sharg, got, want, b.name)
99 t.Errorf("%s: not matched", tc.sharg)
Dserialize.go359 return fmt.Errorf("no Makefile is read")
376 return nil, fmt.Errorf("unexpected number of children: %q", sv)
436 return nil, fmt.Errorf("func name is not literal %s: %T", dv, dv)
483 return nil, fmt.Errorf("not var: target specific var %s %T", dv, dv)
491 return nil, fmt.Errorf("unknown serialized variable type: %q", sv)
504 return nil, fmt.Errorf("not var: %s: %T", dv, dv)
524 return nil, fmt.Errorf("not var: %s %T", dv, dv)
561 return nil, fmt.Errorf("unknown target: %d (%s)", o, targets[o])
568 return nil, fmt.Errorf("unknown target: %d (%s)", o, targets[o])
575 return nil, fmt.Errorf("unknown target: %d (%s)", o, targets[o])
[all …]
/build/soong/androidmk/cmd/androidmk/
Dvalues.go35 return nil, fmt.Errorf("cannot add mismatched types")
61 return nil, fmt.Errorf("Unsupported non-const variable name %s", name.Dump())
121 return nil, fmt.Errorf("unsupported non-const variable name")
178 return nil, fmt.Errorf("unexpected bool value %s", s)
191 return nil, fmt.Errorf("unsupported non-const variable name")
198 return nil, fmt.Errorf("non-const bool expression %s", ms.Dump())
/build/blueprint/bpmodify/
Dbpmodify.go78 return fmt.Errorf("%d parsing errors", len(errs))
107 return fmt.Errorf("computing diff: %s", err)
156 return false, []error{fmt.Errorf("expected parameter %s in module %s to be list, found %s",
161 return false, []error{fmt.Errorf("parameter %s in module %s is a variable, unsupported",
166 return false, []error{fmt.Errorf("parameter %s in module %s is an expression, unsupported",
232 report(fmt.Errorf("-m parameter is required"))
237 report(fmt.Errorf("-a or -r parameter is required"))
/build/soong/java/
Dandroidmk.go26 err = fmt.Errorf("Not yet implemented")
33 err = fmt.Errorf("Not yet implemented")

123