| 606 | } |
| 607 | |
| 608 | void LldbFormattersTest::testQMapInt() |
| 609 | { |
| 610 | TestLaunchConfiguration cfg(QStringLiteral("debuggee_qmapint")); |
| 611 | addCodeBreakpoint(QUrl::fromLocalFile(findSourceFile("qmapint.cpp")), 6); |
| 612 | |
| 613 | QVERIFY(m_session->startDebugging(&cfg, m_iface)); |
| 614 | WAIT_FOR_STATE_AND_IDLE(m_session, DebugSession::PausedState); |
| 615 | |
| 616 | // Should be two rows ('auto', 'local') |
| 617 | QCOMPARE(variableCollection()->rowCount(), 2); |
| 618 | |
| 619 | variableCollection()->expanded(localVariableIndexAt(0)); |
| 620 | WAIT_FOR_A_WHILE_AND_IDLE(m_session, 50); |
| 621 | |
| 622 | VERIFY_LOCAL(0, "m", "<size=2>", (QStringList{"(10, 100)", "(20, 200)"})); |
| 623 | |
| 624 | m_session->stepOver(); |
| 625 | WAIT_FOR_STATE_AND_IDLE(m_session, DebugSession::PausedState); |
| 626 | QCOMPARE(m_session->currentLine(), 7); |
| 627 | |
| 628 | VERIFY_LOCAL(0, "m", "<size=3>", (QStringList{"(10, 100)", "(20, 200)", "(30, 300)"})); |
| 629 | } |
| 630 | |
| 631 | void LldbFormattersTest::testQMapString() |
| 632 | { |
nothing calls this directly
no test coverage detected