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

Method testMultipleBreakpoint

plugins/debuggercommon/tests/debuggertestbase.cpp:1180–1195  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1178}
1179
1180void DebuggerTestBase::testMultipleBreakpoint()
1181{
1182 auto* const session = createTestDebugSession();
1183 TestLaunchConfiguration cfg("debuggee_debugeemultiplebreakpoint");
1184
1185 // there will be about 3-4 breakpoints, but we treat it like one
1186 auto* const breakpoint = breakpoints()->addCodeBreakpoint("debugeemultiplebreakpoint.cpp:52");
1187
1188 const ActiveStateSessionSpy sessionSpy(session);
1189 START_DEBUGGING_AND_WAIT_FOR_PAUSED_STATE_E(session, cfg, sessionSpy);
1190 QCOMPARE(breakpoints()->breakpoints().size(), 1);
1191
1192 breakpoint->setData(Breakpoint::EnableColumn, Qt::Unchecked);
1193 session->run();
1194 WAIT_FOR_STATE(session, IDebugSession::EndedState);
1195}
1196
1197void DebuggerTestBase::testRegularExpressionBreakpoint()
1198{

Callers

nothing calls this directly

Calls 5

addCodeBreakpointMethod · 0.45
sizeMethod · 0.45
breakpointsMethod · 0.45
setDataMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected