Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ActualCost (1.15 sec)

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

    			return errs, -1
    		} else {
    			rtCost := evalDetails.ActualCost()
    			if rtCost == nil {
    				errs = append(errs, field.Invalid(fldPath, sts.Type, fmt.Sprintf("runtime cost could not be calculated for validation rule: %v, no further validation rules will be run", ruleErrorString(rule))))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 20 18:21:31 UTC 2024
    - 32.2K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/cel/library/cost_test.go

    		t.Fatalf("%v", err)
    	}
    	_, details, err := prog.Eval(map[string]interface{}{"authorizer": NewAuthorizerVal(nil, alwaysAllowAuthorizer{})})
    	if err != nil {
    		t.Fatalf("%v", err)
    	}
    	cost := details.ActualCost()
    	if *cost != expectRuntimeCost {
    		t.Errorf("Expected cost of %d but got %d", expectRuntimeCost, *cost)
    	}
    }
    
    func TestSize(t *testing.T) {
    	exactSize := func(size int) checker.SizeEstimate {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 17:22:44 UTC 2024
    - 40.8K bytes
    - Viewed (0)
Back to top