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

Function MinDuration

internal/time.cc:50–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50absl::Duration MinDuration() {
51 // This currently supports a larger range then the current CEL spec. The
52 // intent is to widen the CEL spec to support the larger range and match
53 // google.protobuf.Duration from protocol buffer messages, which this
54 // implementation currently supports.
55 // TODO(google/cel-spec/issues/214): revisit
56 return absl::Seconds(google::protobuf::util::TimeUtil::kDurationMinSeconds) +
57 absl::Nanoseconds(google::protobuf::util::TimeUtil::kDurationMinNanoseconds);
58}
59
60absl::Time MaxTimestamp() {
61 return absl::UnixEpoch() +

Callers 5

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

Calls

no outgoing calls

Tested by 2

TEST_FFunction · 0.68
TESTFunction · 0.68