MCPcopy Create free account
hub / github.com/catboost/catboost / GetDoubleSafe

Method GetDoubleSafe

library/cpp/json/ordered_maps/json_value_ordered.cpp:487–492  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

485 }
486
487 double TJsonValue::GetDoubleSafe() const {
488 if (!IsDouble()) {
489 ythrow TJsonException() << "Not a double";
490 }
491 return GetDouble();
492 }
493
494 const TString& TJsonValue::GetStringSafe() const {
495 if (Type != JSON_STRING) {

Callers 1

Y_UNIT_TESTFunction · 0.45

Calls 1

GetDoubleFunction · 0.70

Tested by

no test coverage detected