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

Method DoubleOrDie

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

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

Source from the content-addressed store, hash-verified

294 // Returns stored double value.
295 // Fails if stored value type is not double.
296 double DoubleOrDie() const { return GetValueOrDie<double>(Type::kDouble); }
297
298 // Returns stored const string* value.
299 // Fails if stored value type is not const string*.

Callers 15

TEST_FFunction · 0.80
TESTFunction · 0.80
TestTypeConvertsMethod · 0.80
TEST_FFunction · 0.80
ExportAsProtoValueFunction · 0.80
CelValueToValueFunction · 0.80
TESTFunction · 0.80
TESTFunction · 0.80
TEST_FFunction · 0.80
AnyFromValueFunction · 0.80
TEST_FFunction · 0.80

Calls

no outgoing calls

Tested by 9

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