MCPcopy Create free account
hub / github.com/IChooseYou/Reclass / testCursorShapeOverType

Method testCursorShapeOverType

tests/test_editor.cpp:926–941  ·  view source on GitHub ↗

── Test: cursor is PointingHand over type column text ──

Source from the content-addressed store, hash-verified

924
925 // ── Test: cursor is PointingHand over type column text ──
926 void testCursorShapeOverType() {
927 m_editor->applyDocument(m_result);
928
929 const LineMeta* lm = m_editor->metaForLine(kFirstDataLine);
930 QVERIFY(lm);
931
932 // Type span starts after the fold column + indent
933 ColumnSpan ts = RcxEditor::typeSpan(*lm, lm->effectiveTypeW);
934 QVERIFY(ts.valid);
935
936 // Move to start of type text (e.g. "uint8_t")
937 QPoint typePos = colToViewport(m_editor->scintilla(), kFirstDataLine, ts.start + 1);
938 sendMouseMove(m_editor->scintilla()->viewport(), typePos);
939 QApplication::processEvents();
940 QCOMPARE(viewportCursor(m_editor), Qt::PointingHandCursor);
941 }
942
943 // ── Test: cursor is PointingHand over fold column ──
944 void testCursorShapeInFoldColumn() {

Callers

nothing calls this directly

Calls 6

colToViewportFunction · 0.85
sendMouseMoveFunction · 0.85
viewportCursorFunction · 0.85
applyDocumentMethod · 0.80
metaForLineMethod · 0.80
scintillaMethod · 0.80

Tested by

no test coverage detected