This commit is contained in:
sentriz
2019-08-21 15:04:41 +01:00
parent c75732868d
commit 6d0fe80608
3 changed files with 3 additions and 5 deletions
-2
View File
@@ -28,9 +28,7 @@ func TestFirstExisting(t *testing.T) {
},
}
for _, tc := range cases {
tc := tc // pin
t.Run(tc.name, func(t *testing.T) {
t.Parallel()
actu := firstExisting(tc.or, tc.values...)
if actu != tc.exp {
t.Errorf("expected %q, got %q", tc.exp, actu)