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

Method testDeleteBreakpoint

plugins/debuggercommon/tests/debuggertestbase.cpp:510–530  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

508}
509
510void DebuggerTestBase::testDeleteBreakpoint()
511{
512 auto* const session = createTestDebugSession();
513 TestLaunchConfiguration cfg;
514
515 QCOMPARE(breakpoints()->rowCount(), 0);
516 // add breakpoint before startDebugging()
517 addDebugeeBreakpoint(22);
518 QCOMPARE(breakpoints()->rowCount(), 1);
519 QVERIFY(breakpoints()->removeRow(0));
520 QCOMPARE(breakpoints()->rowCount(), 0);
521
522 addDebugeeBreakpoint(23);
523 const ActiveStateSessionSpy sessionSpy(session);
524 START_DEBUGGING_AND_WAIT_FOR_PAUSED_STATE_E(session, cfg, sessionSpy);
525
526 QVERIFY(breakpoints()->removeRow(0));
527
528 session->run();
529 WAIT_FOR_STATE(session, IDebugSession::EndedState);
530}
531
532void DebuggerTestBase::testPendingBreakpoint()
533{

Callers

nothing calls this directly

Calls 3

removeRowMethod · 0.80
rowCountMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected