| 559 | } |
| 560 | |
| 561 | void 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 | |
| 580 | void QtPrintersTest::testQMultiMapStringBool() |
| 581 | { |
nothing calls this directly
no test coverage detected