const costLimit …
type validationMatcher …
type allMatcher …
func matchesAll(matchers ...validationMatcher) validationMatcher { … }
func (m allMatcher) matches(cr CompilationResult) bool { … }
func (m allMatcher) String() string { … }
type fnMatcher …
func (m fnMatcher) matches(cr CompilationResult) bool { … }
func (m fnMatcher) String() string { … }
type errorMatcher …
func invalidError(contains string) validationMatcher { … }
func (v errorMatcher) matches(cr CompilationResult) bool { … }
func (v errorMatcher) String() string { … }
type messageExpressionErrorMatcher …
func messageExpressionError(contains string) validationMatcher { … }
func (m messageExpressionErrorMatcher) matches(cr CompilationResult) bool { … }
func (m messageExpressionErrorMatcher) String() string { … }
type noErrorMatcher …
func noError() validationMatcher { … }
func (noErrorMatcher) matches(cr CompilationResult) bool { … }
func (noErrorMatcher) String() string { … }
type transitionRuleMatcher …
func transitionRule(t bool) validationMatcher { … }
func (v transitionRuleMatcher) matches(cr CompilationResult) bool { … }
func (v transitionRuleMatcher) String() string { … }
func TestCelCompilation(t *testing.T) { … }
func parseRuleType(ruleType string) (string, string, bool) { … }
func genArrayWithRule(arrayType, rule string) func(maxItems *int64) *schema.Structural { … }
func genArrayOfArraysWithRule(arrayType, rule string) func(maxItems *int64) *schema.Structural { … }
func genObjectArrayWithRule(rule string) func(maxItems *int64) *schema.Structural { … }
func getMapArrayWithRule(mapType, rule string) func(maxItems *int64) *schema.Structural { … }
func genMapWithRule(mapType, rule string) func(maxProperties *int64) *schema.Structural { … }
func genStringWithRule(rule string) func(maxLength *int64) *schema.Structural { … }
func genEnumWithRuleAndValues(rule string, values ...string) func(maxLength *int64) *schema.Structural { … }
func genBytesWithRule(rule string) func(maxLength *int64) *schema.Structural { … }
func genNestedSpecWithRule(rule string) func(maxLength *int64) *schema.Structural { … }
func genAllMaxNestedSpecWithRootRule(rule string) func(maxLength *int64) *schema.Structural { … }
func genOneMaxNestedSpecWithRootRule(rule string) func(maxLength *int64) *schema.Structural { … }
func genObjectForMap() *schema.Structural { … }
func genArrayForMap() *schema.Structural { … }
func genMapForMap() *schema.Structural { … }
func genMapWithCustomItemRule(item *schema.Structural, rule string) func(maxProperties *int64) *schema.Structural { … }
func schemaChecker(schema *schema.Structural, expectedCost uint64, expectedCostExceedsLimit uint64, t *testing.T) func(t *testing.T) { … }
func TestCostEstimation(t *testing.T) { … }
func BenchmarkCompile(b *testing.B) { … }
type fakeLib …
var testLibraryDecls …
func (*fakeLib) CompileOptions() []celgo.EnvOption { … }
func (*fakeLib) ProgramOptions() []celgo.ProgramOption { … }
func fakeFunction(arg1 ref.Val) ref.Val { … }