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

Function SafeDurationValue

common/values/duration_value.h:129–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

127}
128
129inline absl::StatusOr<DurationValue> SafeDurationValue(absl::Duration value) {
130 absl::Status status = internal::ValidateDuration(value);
131 if (!status.ok()) {
132 return status;
133 }
134 return UnsafeDurationValue(value);
135}
136
137inline bool operator!=(DurationValue lhs, DurationValue rhs) {
138 return !operator==(lhs, rhs);

Callers

nothing calls this directly

Calls 3

ValidateDurationFunction · 0.85
UnsafeDurationValueFunction · 0.85
okMethod · 0.45

Tested by

no test coverage detected