MCPcopy Create free account
hub / github.com/cel-expr/cel-go / testEnvs

Function testEnvs

checker/checker_test.go:2455–2476  ·  view source on GitHub ↗
(t testing.TB)

Source from the content-addressed store, hash-verified

2453}
2454
2455func testEnvs(t testing.TB) map[string]testEnv {
2456 return map[string]testEnv{
2457 "default": {
2458 functions: []*decls.FunctionDecl{
2459 testFunction(t, "fg_s",
2460 decls.Overload("fg_s_0", []*types.Type{}, types.StringType)),
2461 testFunction(t, "fi_s_s",
2462 decls.MemberOverload("fi_s_s_0",
2463 []*types.Type{types.StringType}, types.StringType)),
2464 },
2465 idents: []*decls.VariableDecl{
2466 decls.NewVariable("is", types.StringType),
2467 decls.NewVariable("ii", types.IntType),
2468 decls.NewVariable("iu", types.UintType),
2469 decls.NewVariable("iz", types.BoolType),
2470 decls.NewVariable("ib", types.BytesType),
2471 decls.NewVariable("id", types.DoubleType),
2472 decls.NewVariable("ix", types.NullType),
2473 },
2474 },
2475 }
2476}
2477
2478type testInfo struct {
2479 // in contains the expression to be parsed.

Callers 1

testCasesFunction · 0.85

Calls 4

OverloadFunction · 0.92
MemberOverloadFunction · 0.92
NewVariableFunction · 0.92
testFunctionFunction · 0.70

Tested by

no test coverage detected