Debian Codegraph @

debian/missing-sources/github.com/google/cel-go/tools/celtest/testdata/raw_expr_tests.yaml

raw symbols SCIP
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 description: "simple expression tests"
16 section:
17 - name: "valid"
18 tests:
19 - name: "true"
20 input:
21 i:
22 value: 21
23 j:
24 value: 42
25 a:
26 value: false
27 output:
28 value: true
29 - name: "false"
30 input:
31 i:
32 value: 22
33 j:
34 value: 42
35 a:
36 value: false
37 output:
38 value: false
39 - name: "true a"
40 input:
41 a:
42 value: true
43 output:
44 value: true
45 - name: "unknown"
46 tests:
47 - name: "unknown i"
48 input:
49 j:
50 value: 42
51 a:
52 value: false
53 output:
54 unknown_set:
55 - 2
56 - name: "unknown a and j"
57 input:
58 i:
59 value: 21
60 output:
61 unknown_set:
62 - 1
63 - 5
64 - name: "unknown a and i"
65 input:
66 j:
67 value: 42
68 output:
69 unknown_set:
70 - 1
71 - 2