Coverage Report

Created: 2026-09-14 06:52

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/proc/self/cwd/eval/public/cel_options.cc
Line
Count
Source
1
// Copyright 2023 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
#include "eval/public/cel_options.h"
16
17
#include "runtime/runtime_options.h"
18
19
namespace google::api::expr::runtime {
20
21
49.6k
cel::RuntimeOptions ConvertToRuntimeOptions(const InterpreterOptions& options) {
22
49.6k
  return cel::RuntimeOptions{
23
49.6k
      /*.container=*/"",
24
49.6k
      options.unknown_processing,
25
49.6k
      options.enable_missing_attribute_errors,
26
49.6k
      options.enable_timestamp_duration_overflow_errors,
27
49.6k
      options.short_circuiting,
28
49.6k
      options.enable_comprehension,
29
49.6k
      options.comprehension_max_iterations,
30
49.6k
      options.enable_comprehension_list_append,
31
49.6k
      options.enable_comprehension_mutable_map,
32
49.6k
      options.enable_regex,
33
49.6k
      options.regex_max_program_size,
34
49.6k
      options.enable_string_conversion,
35
49.6k
      options.enable_string_concat,
36
49.6k
      options.enable_list_concat,
37
49.6k
      options.enable_list_contains,
38
49.6k
      options.fail_on_warnings,
39
49.6k
      options.enable_qualified_type_identifiers,
40
49.6k
      options.enable_heterogeneous_equality,
41
49.6k
      options.enable_empty_wrapper_null_unboxing,
42
49.6k
      options.enable_lazy_bind_initialization,
43
49.6k
      options.max_recursion_depth,
44
49.6k
      options.enable_recursive_tracing,
45
49.6k
      options.enable_fast_builtins,
46
49.6k
      options.enable_precision_preserving_double_format,
47
49.6k
      options.enable_typed_field_access,
48
49.6k
      options.enable_use_new_field_select_implementation,
49
49.6k
  };
50
49.6k
}
51
52
}  // namespace google::api::expr::runtime