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

Function TestConfig

policy/config_test.go:28–111  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

26)
27
28func TestConfig(t *testing.T) {
29 tests := []string{
30 `name: hello`,
31 `description: empty`,
32 `container: pb.pkg`,
33 `
34extensions:
35 - name: "bindings"
36 - name: "encoders"
37 - name: "lists"
38 - name: "math"
39 - name: "optional"
40 - name: "protos"
41 - name: "sets"
42 - name: "strings"
43 version: 1`,
44 `
45functions:
46 - name: "coalesce"
47 overloads:
48 - id: "null_coalesce_int"
49 target:
50 type_name: "null_type"
51 args:
52 - type_name: "int"
53 return:
54 type_name: "int"
55 - id: "coalesce_null_int"
56 args:
57 - type_name: "null_type"
58 - type_name: "int"
59 return:
60 type_name: "int"
61 - id: "int_coalesce_int"
62 target:
63 type_name: "int"
64 args:
65 - type_name: "int"
66 return:
67 type_name: "int"
68 - id: "optional_T_coalesce_T"
69 target:
70 type_name: "optional_type"
71 params:
72 - type_name: "T"
73 is_type_param: true
74 args:
75 - type_name: "T"
76 is_type_param: true
77 return:
78 type_name: "T"
79 is_type_param: true
80`,
81 `
82variables:
83- name: "request"
84 type:
85 type_name: "map"

Callers

nothing calls this directly

Calls 6

ExtendMethod · 0.95
NewEnvFunction · 0.92
OptionalTypesFunction · 0.92
TypesFunction · 0.92
parseConfigYamlFunction · 0.85
FromConfigFunction · 0.70

Tested by

no test coverage detected