1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-27 18:13:17 +00:00
kyverno/pkg/cel/libs/imagedata/lib_test.go
Charles-Edouard Brétéché 2bb687550c
feat: add imagedata cel lib (#12442)
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2025-03-19 17:03:23 +08:00

20 lines
339 B
Go

package imagedata
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())
}