MCPcopy Create free account
hub / github.com/cpputest/cpputest / getUnsignedLongLongIntValue

Method getUnsignedLongLongIntValue

src/CppUTestExt/MockNamedValue.cpp:268–285  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

266}
267
268cpputest_ulonglong MockNamedValue::getUnsignedLongLongIntValue() const
269{
270 if(type_ == "unsigned int")
271 return value_.unsignedIntValue_;
272 else if(type_ == "int" && value_.intValue_ >= 0)
273 return (unsigned long long int)value_.intValue_;
274 else if(type_ == "long int" && value_.longIntValue_ >= 0)
275 return (unsigned long long int)value_.longIntValue_;
276 else if(type_ == "unsigned long int")
277 return value_.unsignedLongIntValue_;
278 else if(type_ == "long long int" && value_.longLongIntValue_ >= 0)
279 return (unsigned long long int)value_.longLongIntValue_;
280 else
281 {
282 STRCMP_EQUAL("unsigned long long int", type_.asCharString());
283 return value_.unsignedLongLongIntValue_;
284 }
285}
286
287#else
288

Callers 5

TESTFunction · 0.80
TESTFunction · 0.80

Calls 2

cpputest_ulonglongClass · 0.85
asCharStringMethod · 0.80

Tested by 2

TESTFunction · 0.64
TESTFunction · 0.64