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

Method setConstObjectPointer

src/CppUTestExt/MockNamedValue.cpp:156–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154}
155
156void MockNamedValue::setConstObjectPointer(const SimpleString& type, const void* objectPtr)
157{
158 type_ = type;
159 value_.constObjectPointerValue_ = objectPtr;
160 if (defaultRepository_)
161 {
162 comparator_ = defaultRepository_->getComparatorForType(type);
163 copier_ = defaultRepository_->getCopierForType(type);
164 }
165}
166
167void MockNamedValue::setObjectPointer(const SimpleString& type, void* objectPtr)
168{

Callers 5

MockActualCall.cppFile · 0.80
setDataConstObjectMethod · 0.80
TESTFunction · 0.80
TESTFunction · 0.80

Calls 2

getComparatorForTypeMethod · 0.80
getCopierForTypeMethod · 0.80

Tested by 2

TESTFunction · 0.64
TESTFunction · 0.64