*: fix unused issue

Signed-off-by: Wei Fu <fuweid89@gmail.com>
This commit is contained in:
Wei Fu
2023-09-25 19:37:18 +08:00
parent 896d161d16
commit 4704a5af3a
14 changed files with 1 additions and 191 deletions

View File

@ -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()
}