@ -15,7 +15,6 @@
|
||||
package testutil
|
||||
|
||||
import (
|
||||
"reflect"
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
@ -52,11 +51,3 @@ func AssertFalse(t *testing.T, v bool, msg ...string) {
|
||||
newMsg := copyToInterface(msg...)
|
||||
assert.Equal(t, false, v, newMsg)
|
||||
}
|
||||
|
||||
func isNil(v any) bool {
|
||||
if v == nil {
|
||||
return true
|
||||
}
|
||||
rv := reflect.ValueOf(v)
|
||||
return rv.Kind() != reflect.Struct && rv.IsNil()
|
||||
}
|
||||
|
Reference in New Issue
Block a user