| 707 | } |
| 708 | |
| 709 | void LldbFormattersTest::testQHashString() |
| 710 | { |
| 711 | TestLaunchConfiguration cfg(QStringLiteral("debuggee_qhashstring")); |
| 712 | addCodeBreakpoint(QUrl::fromLocalFile(findSourceFile("qhashstring.cpp")), 7); |
| 713 | |
| 714 | QVERIFY(m_session->startDebugging(&cfg, m_iface)); |
| 715 | WAIT_FOR_STATE_AND_IDLE(m_session, DebugSession::PausedState); |
| 716 | |
| 717 | // Should be two rows ('auto', 'local') |
| 718 | QCOMPARE(variableCollection()->rowCount(), 2); |
| 719 | |
| 720 | variableCollection()->expanded(localVariableIndexAt(0)); |
| 721 | WAIT_FOR_A_WHILE_AND_IDLE(m_session, 50); |
| 722 | |
| 723 | if (!verifyVariable(0, QStringLiteral("h"), QStringLiteral("<size=2>"), QStringList{"(\"10\", \"100\")", "(\"20\", \"200\")"}, |
| 724 | __FILE__, __LINE__, true, false, true)) { |
| 725 | return; |
| 726 | } |
| 727 | |
| 728 | m_session->stepOver(); |
| 729 | WAIT_FOR_STATE_AND_IDLE(m_session, DebugSession::PausedState); |
| 730 | QCOMPARE(m_session->currentLine(), 8); |
| 731 | |
| 732 | if (!verifyVariable(0, QStringLiteral("h"), QStringLiteral("<size=3>"), |
| 733 | {"(\"10\", \"100\")", "(\"20\", \"200\")", "(\"30\", \"300\")"}, |
| 734 | __FILE__, __LINE__, true, false, true)) { |
| 735 | return; |
| 736 | } |
| 737 | } |
| 738 | |
| 739 | void LldbFormattersTest::testQSetInt() |
| 740 | { |
nothing calls this directly
no test coverage detected