mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-27 18:13:17 +00:00
20 lines
339 B
Go
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())
|
|
}
|