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

Method GetDoubleSafe

library/cpp/json/writer/json_value.cpp:444–449  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

442 }
443
444 double TJsonValue::GetDoubleSafe() const {
445 if (!IsDouble()) {
446 ythrow TJsonException() << "Not a double";
447 }
448 return GetDouble();
449 }
450
451 const TString& TJsonValue::GetStringSafe() const {
452 if (Type != JSON_STRING) {

Callers 6

FromJsonStringMethod · 0.45
Y_UNIT_TESTFunction · 0.45
DecodeMethod · 0.45
AreJsonValuesDifferentFunction · 0.45
AlmostEqualMethod · 0.45
Y_UNIT_TESTFunction · 0.45

Calls 1

GetDoubleFunction · 0.70

Tested by

no test coverage detected