MCPcopy Create free account
hub / github.com/cel-expr/cel-cpp / MaxDuration

Function MaxDuration

internal/time.cc:40–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38} // namespace
39
40absl::Duration MaxDuration() {
41 // This currently supports a larger range then the current CEL spec. The
42 // intent is to widen the CEL spec to support the larger range and match
43 // google.protobuf.Duration from protocol buffer messages, which this
44 // implementation currently supports.
45 // TODO(google/cel-spec/issues/214): revisit
46 return absl::Seconds(google::protobuf::util::TimeUtil::kDurationMaxSeconds) +
47 absl::Nanoseconds(google::protobuf::util::TimeUtil::kDurationMaxNanoseconds);
48}
49
50absl::Duration MinDuration() {
51 // This currently supports a larger range then the current CEL spec. The

Callers 7

TEST_FFunction · 0.85
TESTFunction · 0.85
TESTFunction · 0.85
TESTFunction · 0.85
CelValidateDurationFunction · 0.85
ValidateDurationFunction · 0.85

Calls

no outgoing calls

Tested by 4

TEST_FFunction · 0.68
TESTFunction · 0.68
TESTFunction · 0.68
TESTFunction · 0.68