summaryrefslogtreecommitdiff
path: root/sdk/sdk_test.go
diff options
context:
space:
mode:
author Paul Duffin <paulduffin@google.com> 2019-11-29 20:30:18 +0000
committer Paul Duffin <paulduffin@google.com> 2019-11-29 20:35:06 +0000
commit01178ed7d15f995e19d441964deee6ba6e1eac7e (patch)
treeb8a1b708e4e7b22e7da7d9c3e1dbe15e6aef3e56 /sdk/sdk_test.go
parent66905ed6cf85505e46eca82eb6c20b4a144bb6b0 (diff)
Remove unused methods from sdk/sdk_test.go
Bug: 143678475 Test: m conscrypt-module-sdk Change-Id: Ic011fd63b226beb455793e2df08114992b858698
Diffstat (limited to 'sdk/sdk_test.go')
-rw-r--r--sdk/sdk_test.go23
1 files changed, 0 insertions, 23 deletions
diff --git a/sdk/sdk_test.go b/sdk/sdk_test.go
index e2e40bb15..1bbd28618 100644
--- a/sdk/sdk_test.go
+++ b/sdk/sdk_test.go
@@ -139,22 +139,6 @@ func testSdkError(t *testing.T, pattern, bp string) {
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) {
t.Helper()
if !android.InList(expected, result) {
@@ -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 {
ret := []string{}
for _, p := range paths {