Skip to content

Commit

Permalink
Add compile tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hanzei committed Nov 1, 2023
1 parent 8b6024f commit 289a135
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions fieldapi_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package logr

import "testing"

func TestFieldArray(t *testing.T) {
Array("array", []string{})
Array("array", []any{})

type myArray []any
Array("array", myArray{})

type myGenericArray[T any] []T
Array("array", myGenericArray[any]{})
}

0 comments on commit 289a135

Please sign in to comment.