Home
last modified time | relevance | path

Searched refs:expectedErr (Results 1 – 18 of 18) sorted by relevance

/build/soong/ui/build/
Drbe_test.go88 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)
Dupload_test.go153 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/
Dtesting.go43 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)
Dcc_prebuilt_library_conversion_test.go139 expectedErr: fmt.Errorf("Expected at most one source file"),
162 expectedErr: fmt.Errorf("Expected at most one source file"),
Dfilegroup_conversion_test.go56 expectedErr: fmt.Errorf("filegroup 'foo' cannot contain a file with the same name"),
Dcc_prebuilt_library_static_test.go96 expectedErr: fmt.Errorf("Expected at most one source file"),
Dcc_prebuilt_library_shared_test.go83 expectedErr: fmt.Errorf("Expected at most one source file"),
Djava_library_conversion_test.go122expectedErr: fmt.Errorf("Module has direct dependencies but no sources. Bazel will not allow this.…
Dcc_library_shared_conversion_test.go428 expectedErr: fmt.Errorf("module \"foo_shared\": nocrt is not supported for arch variants"),
Dbuild_conversion_test.go825 expectedErr: fmt.Errorf(`"foobar" depends on unconverted modules: foo`),
Dcc_library_conversion_test.go1268 expectedErr: fmt.Errorf("module \"foo-lib\": nocrt is not supported for arch variants"),
/build/blueprint/
Dmodule_ctx_test.go81 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 …]
Dcontext_test.go1114 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/
Dbpfix_test.go128 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/
Dextend_test.go1799 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)
Dunpack_test.go1101 for _, expectedErr := range testCase.errors {
1104 if err.Error() == expectedErr {
1109 t.Errorf("expected error %s", expectedErr)
/build/soong/android/
Dpaths_test.go198 expected interface{}, expectedErr []error) {
213 if !reflect.DeepEqual(expectedErr, err) {
214 e("errors:", expectedErr, err)
/build/blueprint/parser/
Dparser_test.go1344 expectedErr := `<input>:4:6: only strings are supported as map keys: int64 ('\x01'@<input>:4:5)`
1350 if expectedErr != err.Error() {