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

Method retrieveDataFromStore

src/CppUTestExt/MockSupport.cpp:346–354  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

344}
345
346MockNamedValue* MockSupport::retrieveDataFromStore(const SimpleString& name)
347{
348 MockNamedValue* newData = data_.getValueByName(name);
349 if (newData == NULLPTR) {
350 newData = new MockNamedValue(name);
351 data_.add(newData);
352 }
353 return newData;
354}
355
356void MockSupport::setData(const SimpleString& name, bool value)
357{

Callers

nothing calls this directly

Calls 2

getValueByNameMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected