func TestValidationExpressions(t *testing.T) { … }
func TestValidationExpressionsAtSchemaLevels(t *testing.T) { … }
func genMatchSelectorSchema(rule string) *schema.Structural { … }
func TestCELValidationLimit(t *testing.T) { … }
func TestCELValidationContextCancellation(t *testing.T) { … }
const maxValidDepth …
func TestCELMaxRecursionDepth(t *testing.T) { … }
func TestMessageExpression(t *testing.T) { … }
func TestReasonAndFldPath(t *testing.T) { … }
func TestValidateFieldPath(t *testing.T) { … }
func FixTabsOrDie(in string) string { … }
func mustSchema(source string) *schema.Structural { … }
func mustUnstructured(source string) interface{ … }
type warningRecorder …
func (r *warningRecorder) AddWarning(agent, text string) { … }
func (r *warningRecorder) Warnings() []string { … }
func TestRatcheting(t *testing.T) { … }
func TestOptionalOldSelf(t *testing.T) { … }
func TestOptionalOldSelfCheckForNull(t *testing.T) { … }
func TestOptionalOldSelfIsOptionalType(t *testing.T) { … }
func genString(n int, c rune) string { … }
func setDefaultVerbosity(v int) { … }
func BenchmarkCELValidationWithContext(b *testing.B) { … }
func BenchmarkCELValidationWithCancelledContext(b *testing.B) { … }
func BenchmarkCELValidationWithAndWithoutOldSelfReference(b *testing.B) { … }
func primitiveType(typ, format string) schema.Structural { … }
var integerType …
var int32Type …
var int64Type …
var numberType …
var floatType …
var doubleType …
var stringType …
var byteType …
var booleanType …
var durationFormat …
var dateFormat …
var dateTimeFormat …
func listType(items *schema.Structural) schema.Structural { … }
func listTypePtr(items *schema.Structural) *schema.Structural { … }
func listSetType(items *schema.Structural) schema.Structural { … }
func listMapType(keys []string, items *schema.Structural) schema.Structural { … }
func listMapTypePtr(keys []string, items *schema.Structural) *schema.Structural { … }
func arrayType(listType string, keys []string, items *schema.Structural) schema.Structural { … }
func ValsEqualThemselvesAndDataLiteral(val1, val2 string, dataLiteral string) string { … }
func objs(val ...interface{ … }
func schemas(valSchema ...schema.Structural) *schema.Structural { … }
func objectType(props map[string]schema.Structural) schema.Structural { … }
func objectTypePtr(props map[string]schema.Structural) *schema.Structural { … }
func mapType(valSchema *schema.Structural) schema.Structural { … }
func mapTypePtr(valSchema *schema.Structural) *schema.Structural { … }
func intOrStringType() schema.Structural { … }
func withRule(s schema.Structural, rule string) schema.Structural { … }
func withRuleMessageAndMessageExpression(s schema.Structural, rule, message, messageExpression string) schema.Structural { … }
func withReasonAndFldPath(s schema.Structural, rule, jsonPath string, reason *apiextensions.FieldValueErrorReason) schema.Structural { … }
func withRuleAndMessageExpression(s schema.Structural, rule, messageExpression string) schema.Structural { … }
func withRulePtr(s *schema.Structural, rule string) *schema.Structural { … }
func cloneWithRule(s *schema.Structural, rule string) *schema.Structural { … }
func withMaxLength(s schema.Structural, maxLength *int64) schema.Structural { … }
func withMaxItems(s schema.Structural, maxItems *int64) schema.Structural { … }
func withMaxProperties(s schema.Structural, maxProperties *int64) schema.Structural { … }
func withDefault(dflt interface{ … }
func withNullable(nullable bool, s schema.Structural) schema.Structural { … }
func withNullablePtr(nullable bool, s schema.Structural) *schema.Structural { … }
func nilInterfaceOfStringSlice() []interface{ … }