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

Method testQHashInt

plugins/lldb/unittests/test_lldbformatters.cpp:680–707  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

678
679
680void 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
709void LldbFormattersTest::testQHashString()
710{

Callers

nothing calls this directly

Calls 7

findSourceFileFunction · 0.85
variableCollectionFunction · 0.85
startDebuggingMethod · 0.80
currentLineMethod · 0.80
rowCountMethod · 0.45
expandedMethod · 0.45
stepOverMethod · 0.45

Tested by

no test coverage detected