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

Method testBreakpoint

plugins/debuggercommon/tests/debuggertestbase.cpp:417–437  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

415}
416
417void DebuggerTestBase::testBreakpoint()
418{
419 auto* const session = createTestDebugSession();
420 TestLaunchConfiguration cfg;
421
422 auto* const breakpoint = addDebugeeBreakpoint(30);
423 QCOMPARE(breakpoint->state(), Breakpoint::NotStartedState);
424
425 ActiveStateSessionSpy sessionSpy(session);
426 START_DEBUGGING_AND_WAIT_FOR_PAUSED_STATE_E(session, cfg, sessionSpy);
427
428 QCOMPARE(breakpoint->state(), Breakpoint::CleanState);
429 QCOMPARE(currentMiLine(session), 30);
430
431 STEP_INTO_AND_WAIT_FOR_PAUSED_STATE(session, sessionSpy);
432 STEP_INTO_AND_WAIT_FOR_PAUSED_STATE(session, sessionSpy);
433
434 session->run();
435 WAIT_FOR_STATE(session, IDebugSession::EndedState);
436 QCOMPARE(breakpoint->state(), Breakpoint::NotStartedState);
437}
438
439void DebuggerTestBase::testDisableBreakpoint()
440{

Callers

nothing calls this directly

Calls 3

currentMiLineFunction · 0.85
stateMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected