Debian Codegraph @

debian/missing-sources/github.com/google/cel-go/policy/testdata/context_pb/policy.yaml

raw symbols SCIP
1 # Copyright 2024 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: "context_pb"
16
17 imports:
18 - name: google.expr.proto3.test.TestAllTypes
19 - name: google.expr.proto3.test.TestAllTypes.NestedEnum
20 - name: |
21 google.expr.proto3.test.ImportedGlobalEnum
22
23 rule:
24 match:
25 - condition: >
26 single_int32 > TestAllTypes{single_int64: 10}.single_int64
27 output: |
28 "invalid spec, got single_int32=%d, wanted <= 10".format([single_int32])
29 - condition: >
30 standalone_enum == NestedEnum.BAR ||
31 ImportedGlobalEnum.IMPORT_BAR in imported_enums
32 output: |
33 "invalid spec, neither nested nor imported enums may refer to BAR or IMPORT_BAR"