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

Method testQMapInt

plugins/lldb/unittests/test_lldbformatters.cpp:608–629  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

606}
607
608void 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
631void LldbFormattersTest::testQMapString()
632{

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