Debian Codegraph @

tools/compiler/testdata/config.yaml

raw
1 # Copyright 2025 Google LLC
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 # https://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15 name: "test-environment"
16 description: "Test environment"
17 container: "google.expr"
18 imports:
19 - name: "google.expr.proto3.test.TestAllTypes"
20 stdlib:
21 include_macros:
22 - has
23 - exists
24 include_functions:
25 - name: "_==_"
26 overloads:
27 - id: equals
28 args:
29 - type_name: "string"
30 - type_name: "string"
31 return:
32 type_name: "bool"
33 - name: "_||_"
34 overloads:
35 - id: logical_or
36 args:
37 - type_name: "bool"
38 - type_name: "bool"
39 return:
40 type_name: "bool"
41 extensions:
42 - name: "lists"
43 version: "latest"
44 - name: "sets"
45 version: "latest"
46 variables:
47 - name: "destination.ip"
48 type_name: "string"
49 - name: "origin.ip"
50 type_name: "string"
51 - name: "spec.restricted_destinations"
52 type_name: "list"
53 params:
54 - type_name: "string"
55 - name: "spec.origin"
56 type_name: "string"
57 - name: "request"
58 type_name: "map"
59 params:
60 - type_name: "string"
61 - type_name: "dyn"
62 - name: "resource"
63 type_name: "map"
64 params:
65 - type_name: "string"
66 - type_name: "dyn"
67 functions:
68 - name: "locationCode"
69 overloads:
70 - id: "locationCode_string"
71 args:
72 - type_name: "string"
73 return:
74 type_name: "string"
75 validators:
76 - name: cel.validator.duration
77 - name: cel.validator.comprehension_nesting_limit
78 config:
79 limit: 2
80 features:
81 - name: cel.feature.macro_call_tracking
82 enabled: true