Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for withrules (0.3 sec)

  1. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/compilation_test.go

    			schemaGenerator: func(max *int64) *schema.Structural {
    				strType := withMaxLength(primitiveType("string", ""), max)
    				array := withMaxItems(arrayType("atomic", nil, &strType), max)
    				array = withRule(array, "self.join(' ') == 'aa bb'")
    				return &array
    			},
    			expectedCalcCost: 329853068905,
    			setMaxElements:   10,
    			expectedSetCost:  43,
    		},
    		{
    			name: "extended library isSorted",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 20:13:14 UTC 2024
    - 51.5K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/celcoststability_test.go

    				expectedCost := expectedCost
    				testName := validRule
    				if len(testName) > 127 {
    					testName = testName[:127]
    				}
    				t.Run(testName, func(t *testing.T) {
    					t.Parallel()
    					s := withRule(*tt.schema, validRule)
    					celValidator := NewValidator(&s, true, celconfig.PerCallLimit)
    					if celValidator == nil {
    						t.Fatal("expected non nil validator")
    					}
    					ctx := context.TODO()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 19:20:16 UTC 2024
    - 80.2K bytes
    - Viewed (0)
Back to top