From b7ce29ad79c2edef242358ca5cee395c4e6a7c80 Mon Sep 17 00:00:00 2001 From: Joonas Lehtimaki Date: Tue, 14 Nov 2023 16:42:14 +0200 Subject: [PATCH] feat: add more descriptive test case --- pkg/collector/collector_test.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkg/collector/collector_test.go b/pkg/collector/collector_test.go index 4222d71..d8a0de1 100644 --- a/pkg/collector/collector_test.go +++ b/pkg/collector/collector_test.go @@ -56,7 +56,9 @@ func TestDiscordIDs(t *testing.T) { }, } for _, tc := range testCases { - res := getDiscordIDs(tc.ops) - assert.Equal(t, tc.expected, res) + t.Run(tc.name, func(t *testing.T) { + res := getDiscordIDs(tc.ops) + assert.Equal(t, tc.expected, res) + }) } }