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

Method testQSetString

plugins/lldb/unittests/test_lldbformatters.cpp:768–796  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

766}
767
768void LldbFormattersTest::testQSetString()
769{
770 TestLaunchConfiguration cfg(QStringLiteral("debuggee_qsetstring"));
771 addCodeBreakpoint(QUrl::fromLocalFile(findSourceFile("qsetstring.cpp")), 7);
772
773 QVERIFY(m_session->startDebugging(&cfg, m_iface));
774 WAIT_FOR_STATE_AND_IDLE(m_session, DebugSession::PausedState);
775
776 // Should be two rows ('auto', 'local')
777 QCOMPARE(variableCollection()->rowCount(), 2);
778
779 variableCollection()->expanded(localVariableIndexAt(0));
780 WAIT_FOR_A_WHILE_AND_IDLE(m_session, 50);
781
782 if (!verifyVariable(0, QStringLiteral("s"), QStringLiteral("<size=2>"), QStringList{"\"10\"", "\"20\""},
783 __FILE__, __LINE__, true, false, true)) {
784 return;
785 }
786
787 m_session->stepOver();
788 WAIT_FOR_STATE_AND_IDLE(m_session, DebugSession::PausedState);
789 QCOMPARE(m_session->currentLine(), 8);
790
791 if (!verifyVariable(0, QStringLiteral("s"), QStringLiteral("<size=3>"),
792 {"\"10\"", "\"20\"", "\"30\""},
793 __FILE__, __LINE__, true, false, true)) {
794 return;
795 }
796}
797
798void LldbFormattersTest::testQDate()
799{

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