MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / testStringEqual

Function testStringEqual

src/openms/source/CONCEPT/ClassTest.cpp:552–583  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

550 }
551
552 void testStringEqual(const char* /*file*/, int line,
553 const std::string& string_1,
554 const char* string_1_stringified,
555 const std::string& string_2,
556 const char* string_2_stringified)
557 {
558 ++test_count;
559 test_line = line;
560 this_test = (string_1 == string_2);
561 test = test && this_test;
562 {
563 initialNewline();
564 if (this_test)
565 {
566 if (TEST::verbose > 1)
567 {
568 stdcout << " + line " << line << ": TEST_STRING_EQUAL("
569 << string_1_stringified << ',' << string_2_stringified
570 << "): got \"" << string_1 << "\", expected \"" << string_2
571 << "\"" << std::endl;
572 }
573 }
574 else
575 {
576 stdcout << " - line " << line << ": TEST_STRING_EQUAL("
577 << string_1_stringified << ',' << string_2_stringified
578 << "): got \"" << string_1 << "\", expected \"" << string_2
579 << "\"" << std::endl;
580 failed_lines_list.push_back(line);
581 }
582 }
583 }
584
585 void testStringSimilar(const char* /*file*/, int line,
586 const std::string& string_1,

Callers

nothing calls this directly

Calls 2

initialNewlineFunction · 0.85
push_backMethod · 0.45

Tested by

no test coverage detected