kubernetes/staging/src/k8s.io/apiserver/pkg/cel/library/cost_test.go

const intListLiteral

const uintListLiteral

const doubleListLiteral

const boolListLiteral

const stringListLiteral

const bytesListLiteral

const durationListLiteral

const timestampListLiteral

const stringLiteral

type comparableCost

func TestListsCost(t *testing.T) {}

func TestIndexOfCost(t *testing.T) {}

func TestURLsCost(t *testing.T) {}

func TestIPCost(t *testing.T) {}

func TestIPIsCanonicalCost(t *testing.T) {}

func TestCIDRCost(t *testing.T) {}

func TestStringLibrary(t *testing.T) {}

func TestAuthzLibrary(t *testing.T) {}

func TestQuantityCost(t *testing.T) {}

func TestNameFormatCost(t *testing.T) {}

func TestSetsCost(t *testing.T) {}

func testCost(t *testing.T, expr string, expectEsimatedCost checker.CostEstimate, expectRuntimeCost uint64) {}

func TestSize(t *testing.T) {}

// TestTypeEquality ensures that cost is tested for all custom types used by Kubernetes libraries.
func TestTypeEquality(t *testing.T) {}

type testNode

var _

func (t testNode) Path() []string {}

func (t testNode) Type() *types.Type {}

func (t testNode) Expr() ast.Expr {}

func (t testNode) ComputedSize() *checker.SizeEstimate {}

type testCostEstimator

func (t *testCostEstimator) EstimateSize(element checker.AstNode) *checker.SizeEstimate {}

func (t *testCostEstimator) EstimateCallCost(function, overloadId string, target *checker.AstNode, args []checker.AstNode) *checker.CallEstimate {}

type alwaysAllowAuthorizer

func (f alwaysAllowAuthorizer) Authorize(ctx context.Context, a authorizer.Attributes) (authorizer.Decision, string, error) {}