mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-06 10:43:56 +00:00
use require
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
This commit is contained in:
parent
0d825361e6
commit
ea1bd956c5
@ -20,7 +20,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/google/cel-go/common/types"
|
"github.com/google/cel-go/common/types"
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/require"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestTypes_ListType(t *testing.T) {
|
func TestTypes_ListType(t *testing.T) {
|
||||||
@ -88,8 +88,8 @@ func TestDeclTypeProvider_FindStructType(t *testing.T) {
|
|||||||
base := types.NewEmptyRegistry()
|
base := types.NewEmptyRegistry()
|
||||||
provider := NewDeclTypeProvider(obj)
|
provider := NewDeclTypeProvider(obj)
|
||||||
provider, err := provider.WithTypeProvider(base)
|
provider, err := provider.WithTypeProvider(base)
|
||||||
assert.NoError(t, err)
|
require.NoError(t, err)
|
||||||
wrappedType, found := provider.FindStructType("foo")
|
wrappedType, found := provider.FindStructType("foo")
|
||||||
assert.True(t, found)
|
require.True(t, found)
|
||||||
assert.Equal(t, types.TypeKind, wrappedType.Kind())
|
require.Equal(t, types.TypeKind, wrappedType.Kind())
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user