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

Method DurationOrDie

eval/public/cel_value.h:323–325  ·  view source on GitHub ↗

Returns stored duration value. Fails if stored value type is not duration.

Source from the content-addressed store, hash-verified

321 // Returns stored duration value.
322 // Fails if stored value type is not duration.
323 const absl::Duration DurationOrDie() const {
324 return GetValueOrDie<absl::Duration>(Type::kDuration);
325 }
326
327 // Returns stored timestamp value.
328 // Fails if stored value type is not timestamp.

Callers 10

TEST_FFunction · 0.80
TestTypeConvertsMethod · 0.80
ExportAsProtoValueFunction · 0.80
CelValueToValueFunction · 0.80
TEST_FFunction · 0.80
AnyFromValueFunction · 0.80
TEST_FFunction · 0.80
HomogenousCelValueEqualFunction · 0.80
ModernValueFunction · 0.80
FromLegacyValueFunction · 0.80

Calls

no outgoing calls

Tested by 4

TEST_FFunction · 0.64
TestTypeConvertsMethod · 0.64
TEST_FFunction · 0.64
TEST_FFunction · 0.64