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

Method getUnsignedLongIntValue

src/CppUTestExt/MockNamedValue.cpp:234–247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

232}
233
234unsigned long int MockNamedValue::getUnsignedLongIntValue() const
235{
236 if(type_ == "unsigned int")
237 return value_.unsignedIntValue_;
238 else if(type_ == "int" && value_.intValue_ >= 0)
239 return (unsigned long int)value_.intValue_;
240 else if(type_ == "long int" && value_.longIntValue_ >= 0)
241 return (unsigned long int)value_.longIntValue_;
242 else
243 {
244 STRCMP_EQUAL("unsigned long int", type_.asCharString());
245 return value_.unsignedLongIntValue_;
246 }
247}
248
249#ifdef CPPUTEST_USE_LONG_LONG
250

Callers 5

TESTFunction · 0.80
TESTFunction · 0.80

Calls 1

asCharStringMethod · 0.80

Tested by 2

TESTFunction · 0.64
TESTFunction · 0.64