mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-06 16:06:56 +00:00
21 lines
337 B
Go
21 lines
337 B
Go
|
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())
|
||
|
}
|