Merge "Add test case for too many splits" am: bc080da38f
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1673777 Change-Id: I7d338e6f6310716d599f74bed3b880ae5431d7c1
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user