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

Method testQMapStringBool

plugins/lldb/unittests/test_lldbformatters.cpp:656–677  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

654}
655
656void LldbFormattersTest::testQMapStringBool()
657{
658 TestLaunchConfiguration cfg(QStringLiteral("debuggee_qmapstringbool"));
659 addCodeBreakpoint(QUrl::fromLocalFile(findSourceFile("qmapstringbool.cpp")), 7);
660
661 QVERIFY(m_session->startDebugging(&cfg, m_iface));
662 WAIT_FOR_STATE_AND_IDLE(m_session, DebugSession::PausedState);
663
664 // Should be two rows ('auto', 'local')
665 QCOMPARE(variableCollection()->rowCount(), 2);
666
667 variableCollection()->expanded(localVariableIndexAt(0));
668 WAIT_FOR_A_WHILE_AND_IDLE(m_session, 50);
669
670 VERIFY_LOCAL(0, "m", "<size=2>", (QStringList{"(\"10\", true)", "(\"20\", false)"}));
671
672 m_session->stepOver();
673 WAIT_FOR_STATE_AND_IDLE(m_session, DebugSession::PausedState);
674 QCOMPARE(m_session->currentLine(), 8);
675
676 VERIFY_LOCAL(0, "m", "<size=3>", (QStringList{"(\"10\", true)", "(\"20\", false)", "(\"30\", true)"}));
677}
678
679
680void LldbFormattersTest::testQHashInt()

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