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

Method testQHashString

plugins/lldb/unittests/test_lldbformatters.cpp:709–737  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

707}
708
709void LldbFormattersTest::testQHashString()
710{
711 TestLaunchConfiguration cfg(QStringLiteral("debuggee_qhashstring"));
712 addCodeBreakpoint(QUrl::fromLocalFile(findSourceFile("qhashstring.cpp")), 7);
713
714 QVERIFY(m_session->startDebugging(&cfg, m_iface));
715 WAIT_FOR_STATE_AND_IDLE(m_session, DebugSession::PausedState);
716
717 // Should be two rows ('auto', 'local')
718 QCOMPARE(variableCollection()->rowCount(), 2);
719
720 variableCollection()->expanded(localVariableIndexAt(0));
721 WAIT_FOR_A_WHILE_AND_IDLE(m_session, 50);
722
723 if (!verifyVariable(0, QStringLiteral("h"), QStringLiteral("<size=2>"), QStringList{"(\"10\", \"100\")", "(\"20\", \"200\")"},
724 __FILE__, __LINE__, true, false, true)) {
725 return;
726 }
727
728 m_session->stepOver();
729 WAIT_FOR_STATE_AND_IDLE(m_session, DebugSession::PausedState);
730 QCOMPARE(m_session->currentLine(), 8);
731
732 if (!verifyVariable(0, QStringLiteral("h"), QStringLiteral("<size=3>"),
733 {"(\"10\", \"100\")", "(\"20\", \"200\")", "(\"30\", \"300\")"},
734 __FILE__, __LINE__, true, false, true)) {
735 return;
736 }
737}
738
739void LldbFormattersTest::testQSetInt()
740{

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