Loading sdk/sdk_test.go +0 −23 Original line number Original line Diff line number Diff line Loading @@ -139,22 +139,6 @@ func testSdkError(t *testing.T, pattern, bp string) { t.Fatalf("missing expected error %q (0 errors are returned)", pattern) t.Fatalf("missing expected error %q (0 errors are returned)", pattern) } } // ensure that 'result' contains 'expected' func ensureContains(t *testing.T, result string, expected string) { t.Helper() if !strings.Contains(result, expected) { t.Errorf("%q is not found in %q", expected, result) } } // ensures that 'result' does not contain 'notExpected' func ensureNotContains(t *testing.T, result string, notExpected string) { t.Helper() if strings.Contains(result, notExpected) { t.Errorf("%q is found in %q", notExpected, result) } } func ensureListContains(t *testing.T, result []string, expected string) { func ensureListContains(t *testing.T, result []string, expected string) { t.Helper() t.Helper() if !android.InList(expected, result) { if !android.InList(expected, result) { Loading @@ -162,13 +146,6 @@ func ensureListContains(t *testing.T, result []string, expected string) { } } } } func ensureListNotContains(t *testing.T, result []string, notExpected string) { t.Helper() if android.InList(notExpected, result) { t.Errorf("%q is found in %v", notExpected, result) } } func pathsToStrings(paths android.Paths) []string { func pathsToStrings(paths android.Paths) []string { ret := []string{} ret := []string{} for _, p := range paths { for _, p := range paths { Loading Loading
sdk/sdk_test.go +0 −23 Original line number Original line Diff line number Diff line Loading @@ -139,22 +139,6 @@ func testSdkError(t *testing.T, pattern, bp string) { t.Fatalf("missing expected error %q (0 errors are returned)", pattern) t.Fatalf("missing expected error %q (0 errors are returned)", pattern) } } // ensure that 'result' contains 'expected' func ensureContains(t *testing.T, result string, expected string) { t.Helper() if !strings.Contains(result, expected) { t.Errorf("%q is not found in %q", expected, result) } } // ensures that 'result' does not contain 'notExpected' func ensureNotContains(t *testing.T, result string, notExpected string) { t.Helper() if strings.Contains(result, notExpected) { t.Errorf("%q is found in %q", notExpected, result) } } func ensureListContains(t *testing.T, result []string, expected string) { func ensureListContains(t *testing.T, result []string, expected string) { t.Helper() t.Helper() if !android.InList(expected, result) { if !android.InList(expected, result) { Loading @@ -162,13 +146,6 @@ func ensureListContains(t *testing.T, result []string, expected string) { } } } } func ensureListNotContains(t *testing.T, result []string, notExpected string) { t.Helper() if android.InList(notExpected, result) { t.Errorf("%q is found in %v", notExpected, result) } } func pathsToStrings(paths android.Paths) []string { func pathsToStrings(paths android.Paths) []string { ret := []string{} ret := []string{} for _, p := range paths { for _, p := range paths { Loading