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

Method getUnsignedIntValue

src/CppUTestExt/MockNamedValue.cpp:204–213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

202}
203
204unsigned int MockNamedValue::getUnsignedIntValue() const
205{
206 if(type_ == "int" && value_.intValue_ >= 0)
207 return (unsigned int)value_.intValue_;
208 else
209 {
210 STRCMP_EQUAL("unsigned int", type_.asCharString());
211 return value_.unsignedIntValue_;
212 }
213}
214
215int MockNamedValue::getIntValue() const
216{

Callers 6

TESTFunction · 0.80
TESTFunction · 0.80
TESTFunction · 0.80

Calls 1

asCharStringMethod · 0.80

Tested by 3

TESTFunction · 0.64
TESTFunction · 0.64
TESTFunction · 0.64