Skip to content

Commit 3605498

Browse files
committed
Add non-panic test
1 parent 5d9a4c8 commit 3605498

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

derrors/derrors_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,8 @@ func TestJoin(t *testing.T) {
7070

7171
require.NoError(t, err)
7272
})
73+
74+
t.Run("no panic with nil error reference", func(t *testing.T) {
75+
Join(nil, errInternal)
76+
})
7377
}

0 commit comments

Comments
 (0)