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

Function UnsafeDurationValue

common/values/duration_value.h:125–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123};
124
125inline DurationValue UnsafeDurationValue(absl::Duration value) {
126 return DurationValue(absl::in_place, value);
127}
128
129inline absl::StatusOr<DurationValue> SafeDurationValue(absl::Duration value) {
130 absl::Status status = internal::ValidateDuration(value);

Callers 6

ModernValueFunction · 0.85
FromLegacyValueFunction · 0.85
SafeDurationValueFunction · 0.85
optional_value.ccFile · 0.85
operator()Method · 0.85

Calls 1

DurationValueFunction · 0.70

Tested by

no test coverage detected