Add container property to aconfig_declarations.

Bug: 311155208
Test: Unit test
Change-Id: I7b187138856d0144203961e82b6dad5e2f8eed9d
This commit is contained in:
Yu Liu
2023-11-16 17:05:47 -08:00
parent 62093cf7fc
commit eae7b36699
26 changed files with 750 additions and 146 deletions

View File

@@ -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)
}
}