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

Method testQSetInt

plugins/lldb/unittests/test_lldbformatters.cpp:739–766  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

737}
738
739void LldbFormattersTest::testQSetInt()
740{
741 TestLaunchConfiguration cfg(QStringLiteral("debuggee_qsetint"));
742 addCodeBreakpoint(QUrl::fromLocalFile(findSourceFile("qsetint.cpp")), 6);
743
744 QVERIFY(m_session->startDebugging(&cfg, m_iface));
745 WAIT_FOR_STATE_AND_IDLE(m_session, DebugSession::PausedState);
746
747 // Should be two rows ('auto', 'local')
748 QCOMPARE(variableCollection()->rowCount(), 2);
749
750 variableCollection()->expanded(localVariableIndexAt(0));
751 WAIT_FOR_A_WHILE_AND_IDLE(m_session, 50);
752
753 if (!verifyVariable(0, QStringLiteral("s"), QStringLiteral("<size=2>"), QStringList{"10", "20"},
754 __FILE__, __LINE__, true, false, true)) {
755 return;
756 }
757
758 m_session->stepOver();
759 WAIT_FOR_STATE_AND_IDLE(m_session, DebugSession::PausedState);
760 QCOMPARE(m_session->currentLine(), 7);
761
762 if (!verifyVariable(0, QStringLiteral("s"), QStringLiteral("<size=3>"), QStringList{"10", "20", "30"},
763 __FILE__, __LINE__, true, false, true)) {
764 return;
765 }
766}
767
768void LldbFormattersTest::testQSetString()
769{

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