From e169b824571c2739f6039a322689c119c1164cfb Mon Sep 17 00:00:00 2001 From: Bianca Lisle <40155621+blva@users.noreply.github.com> Date: Tue, 12 Nov 2024 12:23:13 +0000 Subject: [PATCH] CLOUDP-283505: Add unit test (#276) --- .../internal/changelog/outputfilter/squash_test.go | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tools/cli/internal/changelog/outputfilter/squash_test.go b/tools/cli/internal/changelog/outputfilter/squash_test.go index a530aacb8..147ab6c45 100644 --- a/tools/cli/internal/changelog/outputfilter/squash_test.go +++ b/tools/cli/internal/changelog/outputfilter/squash_test.go @@ -139,6 +139,17 @@ func TestExtractExactValuesOrFail(t *testing.T) { want: []string{"GROUP_USER_ADMIN", "/items/roles/items/"}, wantErr: require.NoError, }, + { + name: "Multiple values with empty entries", + operation: "test", + entry: &OasDiffEntry{ + ID: "response-write-only-property-enum-value-added", + OperationID: "op1", + Text: "added the new '' enum value to the request property '/items/roles/items/'"}, + expectedNumberOfValues: 2, + want: []string{"", "/items/roles/items/"}, + wantErr: require.NoError, + }, { name: "Incorrect number of values", operation: "test",