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

Method testUpdateMarkType

kdevplatform/debugger/tests/test_breakpointmodel.cpp:538–560  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

536}
537
538void TestBreakpointModel::testUpdateMarkType()
539{
540 const auto [url, doc, b1] = setupPrimaryDocumentAndBreakpoint();
541 RETURN_IF_TEST_FAILED();
542
543 // TEST: Change the mark type to pending.
544 b1->setState(Breakpoint::PendingState);
545 // Verify.
546 QCOMPARE(b1->state(), Breakpoint::PendingState);
547 VERIFY_BREAKPOINT(b1, 21, BreakpointModel::PendingBreakpointMark, documentMarks(doc), );
548
549 // TEST: Change the mark type to reached.
550 b1->setHitCount(1);
551 // Verify.
552 QCOMPARE(b1->hitCount(), 1);
553 VERIFY_BREAKPOINT(b1, 21, BreakpointModel::ReachedBreakpointMark, documentMarks(doc), );
554
555 // TEST: Change the mark type to disabled.
556 b1->setData(Breakpoint::EnableColumn, Qt::Unchecked);
557 // Verify.
558 QCOMPARE(b1->enabled(), false);
559 VERIFY_BREAKPOINT(b1, 21, BreakpointModel::DisabledBreakpointMark, documentMarks(doc), );
560}
561
562void TestBreakpointModel::testRemoveDocumentFile()
563{

Callers

nothing calls this directly

Calls 6

hitCountMethod · 0.80
enabledMethod · 0.80
setStateMethod · 0.45
stateMethod · 0.45
setHitCountMethod · 0.45
setDataMethod · 0.45

Tested by

no test coverage detected