Searched refs:expectedErr (Results 1 – 18 of 18) sorted by relevance
/build/soong/ui/build/ |
D | rbe_test.go | 88 expectedErr string 92 expectedErr: "shutdown failed", 99 if !strings.Contains(got, tt.expectedErr) { 100 t.Errorf("got %q, want %q to be contained in error", got, tt.expectedErr) 122 t.Errorf("got nil, expecting %q as a failure", tt.expectedErr)
|
D | upload_test.go | 153 expectedErr string 157 expectedErr: "getTmpDir failed", 161 expectedErr: "failed to copy", 168 if !strings.Contains(got, tt.expectedErr) { 169 t.Errorf("got %q, want %q to be contained in error", got, tt.expectedErr) 198 t.Errorf("got nil, expecting %q as a failure", tt.expectedErr)
|
/build/soong/bp2build/ |
D | testing.go | 43 func checkError(t *testing.T, errs []error, expectedErr error) bool { 49 if strings.Contains(errs[0].Error(), expectedErr.Error()) { 58 if tc.expectedErr != nil { 88 expectedErr error member 123 if tc.expectedErr != nil && checkError(t, errs, tc.expectedErr) { 134 if tc.expectedErr != nil { 135 if checkError(t, errs, tc.expectedErr) { 138 t.Errorf("Expected error: %q, got: %q", tc.expectedErr, errs)
|
D | cc_prebuilt_library_conversion_test.go | 139 expectedErr: fmt.Errorf("Expected at most one source file"), 162 expectedErr: fmt.Errorf("Expected at most one source file"),
|
D | filegroup_conversion_test.go | 56 expectedErr: fmt.Errorf("filegroup 'foo' cannot contain a file with the same name"),
|
D | cc_prebuilt_library_static_test.go | 96 expectedErr: fmt.Errorf("Expected at most one source file"),
|
D | cc_prebuilt_library_shared_test.go | 83 expectedErr: fmt.Errorf("Expected at most one source file"),
|
D | java_library_conversion_test.go | 122 …expectedErr: fmt.Errorf("Module has direct dependencies but no sources. Bazel will not allow this.…
|
D | cc_library_shared_conversion_test.go | 428 expectedErr: fmt.Errorf("module \"foo_shared\": nocrt is not supported for arch variants"),
|
D | build_conversion_test.go | 825 expectedErr: fmt.Errorf(`"foobar" depends on unconverted modules: foo`),
|
D | cc_library_conversion_test.go | 1268 expectedErr: fmt.Errorf("module \"foo-lib\": nocrt is not supported for arch variants"),
|
/build/blueprint/ |
D | module_ctx_test.go | 81 runWithFailures := func(ctx *Context, expectedErr string) { 109 if expectedErr == "" { 116 if strings.Contains(err.Error(), expectedErr) { 123 } else if expectedErr != "" { 124 t.Errorf("missing dep error: %s", expectedErr) 208 runWithFailures := func(ctx *Context, expectedErr string) { 236 if expectedErr == "" { 243 if strings.Contains(err.Error(), expectedErr) { 250 } else if expectedErr != "" { 251 t.Errorf("missing dep error: %s", expectedErr) [all …]
|
D | context_test.go | 1114 expectedErr string 1130 expectedErr: `module "foo" already defined`, 1145 if !strings.Contains(fmt.Sprintf("%s", actualErrs), fmt.Sprintf("%s", tc.expectedErr)) { 1146 t.Errorf("Expected errors: %s, got errors: %s\n", tc.expectedErr, actualErrs) 1148 if tc.expectedErr != "" {
|
/build/soong/bpfix/bpfix/ |
D | bpfix_test.go | 128 func checkError(t *testing.T, in, expectedErr string, innerTest func(*Fixer) error) { 129 expected := preProcessOutErr(expectedErr) 150 func preProcessOutErr(expectedErr string) string { 151 expected := strings.TrimSpace(expectedErr) 1995 expectedErr string 2009 expectedErr: ` 2016 …checkError(t, test.in, test.expectedErr, runPatchListMod(rewriteLicenseProperty(test.fs, test.path… 2067 expectedErr string 2084 expectedErr: ` 2091 checkError(t, test.in, test.expectedErr, func(fixer *Fixer) error {
|
/build/blueprint/proptools/ |
D | extend_test.go | 1799 expected interface{}, expectedErr error) { 1813 if expectedErr != nil { 1814 if err.Error() != expectedErr.Error() { 1815 e("unexpected error", expectedErr.Error(), err.Error()) 1821 if expectedErr != nil { 1822 e("missing error", expectedErr, nil)
|
D | unpack_test.go | 1101 for _, expectedErr := range testCase.errors { 1104 if err.Error() == expectedErr { 1109 t.Errorf("expected error %s", expectedErr)
|
/build/soong/android/ |
D | paths_test.go | 198 expected interface{}, expectedErr []error) { 213 if !reflect.DeepEqual(expectedErr, err) { 214 e("errors:", expectedErr, err)
|
/build/blueprint/parser/ |
D | parser_test.go | 1344 expectedErr := `<input>:4:6: only strings are supported as map keys: int64 ('\x01'@<input>:4:5)` 1350 if expectedErr != err.Error() {
|