| 678 | |
| 679 | |
| 680 | void LldbFormattersTest::testQHashInt() |
| 681 | { |
| 682 | TestLaunchConfiguration cfg(QStringLiteral("debuggee_qhashint")); |
| 683 | addCodeBreakpoint(QUrl::fromLocalFile(findSourceFile("qhashint.cpp")), 6); |
| 684 | |
| 685 | QVERIFY(m_session->startDebugging(&cfg, m_iface)); |
| 686 | WAIT_FOR_STATE_AND_IDLE(m_session, DebugSession::PausedState); |
| 687 | |
| 688 | // Should be two rows ('auto', 'local') |
| 689 | QCOMPARE(variableCollection()->rowCount(), 2); |
| 690 | |
| 691 | variableCollection()->expanded(localVariableIndexAt(0)); |
| 692 | WAIT_FOR_A_WHILE_AND_IDLE(m_session, 50); |
| 693 | |
| 694 | if (!verifyVariable(0, QStringLiteral("h"), QStringLiteral("<size=2>"), QStringList{"(10, 100)", "(20, 200)"}, |
| 695 | __FILE__, __LINE__, true, false, true)) { |
| 696 | return; |
| 697 | } |
| 698 | |
| 699 | m_session->stepOver(); |
| 700 | WAIT_FOR_STATE_AND_IDLE(m_session, DebugSession::PausedState); |
| 701 | QCOMPARE(m_session->currentLine(), 7); |
| 702 | |
| 703 | if (!verifyVariable(0, QStringLiteral("h"), QStringLiteral("<size=3>"), QStringList{"(10, 100)", "(20, 200)", "(30, 300)"}, |
| 704 | __FILE__, __LINE__, true, false, true)) { |
| 705 | return; |
| 706 | } |
| 707 | } |
| 708 | |
| 709 | void LldbFormattersTest::testQHashString() |
| 710 | { |
nothing calls this directly
no test coverage detected