diff options
author | 2023-11-16 17:05:47 -0800 | |
---|---|---|
committer | 2023-11-28 12:37:02 -0800 | |
commit | eae7b36699477c9c781669f553a7c085e415ac1e (patch) | |
tree | 7c19e74a9068e7f638060497f079cdca6ae473d8 /android/testing.go | |
parent | 62093cf7fc83d4d002e9b802a5f6292bf7954744 (diff) |
Add container property to aconfig_declarations.
Bug: 311155208
Test: Unit test
Change-Id: I7b187138856d0144203961e82b6dad5e2f8eed9d
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) + } +} |