Merge "Add test case for too many splits" am: bc080da38f am: f9e7897be1 am: 17d5ddb14e

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1673777

Change-Id: Ib2510b2b6cfc8a4b1b8cf82c24ab761f0e3d2a35
This commit is contained in:
Liz Kammer 2021-04-15 15:19:41 +00:00 committed by Automerger Merge Worker
commit a5804e0bec
1 changed files with 6 additions and 0 deletions

View File

@ -76,6 +76,12 @@ func TestGetCcInfoParseResults(t *testing.T) {
expectedOutput: CcInfo{},
expectedErrorMessage: fmt.Sprintf("Expected %d items, got %q", 3, []string{"", ""}),
},
{
description: "too many result splits",
input: "|||",
expectedOutput: CcInfo{},
expectedErrorMessage: fmt.Sprintf("Expected %d items, got %q", 3, []string{"", "", "", ""}),
},
}
for _, tc := range testCases {
actualOutput, err := GetCcInfo.ParseResult(tc.input)