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

Method getLongLongIntValue

src/CppUTestExt/MockNamedValue.cpp:251–266  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

249#ifdef CPPUTEST_USE_LONG_LONG
250
251cpputest_longlong MockNamedValue::getLongLongIntValue() const
252{
253 if(type_ == "int")
254 return value_.intValue_;
255 else if(type_ == "unsigned int")
256 return (long long int)value_.unsignedIntValue_;
257 else if(type_ == "long int")
258 return value_.longIntValue_;
259 else if(type_ == "unsigned long int")
260 return (long long int)value_.unsignedLongIntValue_;
261 else
262 {
263 STRCMP_EQUAL("long long int", type_.asCharString());
264 return value_.longLongIntValue_;
265 }
266}
267
268cpputest_ulonglong MockNamedValue::getUnsignedLongLongIntValue() const
269{

Callers 5

TESTFunction · 0.80
TESTFunction · 0.80

Calls 2

cpputest_longlongClass · 0.85
asCharStringMethod · 0.80

Tested by 2

TESTFunction · 0.64
TESTFunction · 0.64