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

Method getLongIntValue

src/CppUTestExt/MockNamedValue.cpp:221–232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

219}
220
221long int MockNamedValue::getLongIntValue() const
222{
223 if(type_ == "int")
224 return value_.intValue_;
225 else if(type_ == "unsigned int")
226 return (long int)value_.unsignedIntValue_;
227 else
228 {
229 STRCMP_EQUAL("long int", type_.asCharString());
230 return value_.longIntValue_;
231 }
232}
233
234unsigned long int MockNamedValue::getUnsignedLongIntValue() const
235{

Callers 5

returnLongIntValueMethod · 0.80
longIntReturnValueMethod · 0.80
TESTFunction · 0.80
TESTFunction · 0.80

Calls 1

asCharStringMethod · 0.80

Tested by 2

TESTFunction · 0.64
TESTFunction · 0.64