MCPcopy Create free account
hub / github.com/KDE/kdevelop / testQMultiMapString

Method testQMultiMapString

plugins/gdb/unittests/test_gdbprinters.cpp:561–578  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

559}
560
561void QtPrintersTest::testQMultiMapString()
562{
563 GdbProcess gdb("debuggee_qmultimapstring");
564 gdb.execute("break qmultimapstring.cpp:6");
565 MapTester tester(gdb, MapTester::MapType::Multi);
566 commonTestQMapOrMultiMapString(tester);
567 RETURN_IF_TEST_RESOLVED();
568
569 tester.gdbNext();
570 tester.gdbNext();
571 QStringList expectedElements{"[\"10\"] = \"100\"", "[\"20\"] = \"11\"", "[\"20\"] = \"x\"", "[\"20\"] = \"200\"",
572 "[\"30\"] = \"300\""};
573 COMPARE_MAP_TO(tester, expectedElements);
574
575 tester.gdbNext();
576 QCOMPARE(expectedElements.removeAll("[\"20\"] = \"x\""), 1);
577 COMPARE_MAP_TO(tester, expectedElements);
578}
579
580void QtPrintersTest::testQMultiMapStringBool()
581{

Callers

nothing calls this directly

Calls 3

gdbNextMethod · 0.80
executeMethod · 0.45

Tested by

no test coverage detected