MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / todoAssertEquals

Method todoAssertEquals

test/fixture.cpp:267–281  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

265}
266
267void TestFixture::todoAssertEquals(const char * const filename, const unsigned int linenr,
268 const std::string &wanted,
269 const std::string &current,
270 const std::string &actual) const
271{
272 if (wanted == actual) {
273 errmsg << getLocationStr(filename, linenr) << ": Assertion succeeded unexpectedly. "
274 << "Result: " << writestr(wanted, true) << std::endl << "_____" << std::endl;
275
276 ++succeeded_todos_counter;
277 } else {
278 assertEquals(filename, linenr, current, actual);
279 ++todos_counter;
280 }
281}
282
283void TestFixture::todoAssertEquals(const char* const filename, const unsigned int linenr,
284 const char wanted[],

Callers

nothing calls this directly

Calls 1

writestrFunction · 0.85

Tested by

no test coverage detected