1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-06 16:06:56 +00:00
kyverno/pkg/cel/libs/context/lib_test.go

21 lines
337 B
Go
Raw Normal View History

package context
import (
"testing"
"github.com/google/cel-go/cel"
"github.com/stretchr/testify/assert"
)
func TestLib(t *testing.T) {
opts := Lib()
env, err := cel.NewEnv(opts)
assert.NoError(t, err)
assert.NotNil(t, env)
}
func Test_lib_LibraryName(t *testing.T) {
var l lib
assert.Equal(t, libraryName, l.LibraryName())
}