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:
commit
a5804e0bec
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue