diff options
Diffstat (limited to 'android/testing.go')
-rw-r--r-- | android/testing.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/android/testing.go b/android/testing.go index da3b75aa2..c596468c3 100644 --- a/android/testing.go +++ b/android/testing.go @@ -1293,3 +1293,10 @@ func StringRelativeToTop(config Config, command string) string { func StringsRelativeToTop(config Config, command []string) []string { return normalizeStringArrayRelativeToTop(config, command) } + +func EnsureListContainsSuffix(t *testing.T, result []string, expected string) { + t.Helper() + if !SuffixInList(result, expected) { + t.Errorf("%q is not found in %v", expected, result) + } +} |