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

Method testFooterLineEdit

tests/test_editor.cpp:537–554  ·  view source on GitHub ↗

── Test: footer line rejects all edits ──

Source from the content-addressed store, hash-verified

535
536 // ── Test: footer line rejects all edits ──
537 void testFooterLineEdit() {
538 m_editor->applyDocument(m_result);
539
540 // Find the footer line
541 int footerLine = -1;
542 for (int i = 0; i < m_result.meta.size(); i++) {
543 if (m_result.meta[i].lineKind == LineKind::Footer) {
544 footerLine = i;
545 break;
546 }
547 }
548 QVERIFY(footerLine >= 0);
549
550 QVERIFY(!m_editor->beginInlineEdit(EditTarget::Type, footerLine));
551 QVERIFY(!m_editor->beginInlineEdit(EditTarget::Name, footerLine));
552 QVERIFY(!m_editor->beginInlineEdit(EditTarget::Value, footerLine));
553 QVERIFY(!m_editor->isEditing());
554 }
555
556 // ── Test: parseValue accepts space-separated hex bytes ──
557 void testParseValueHexWithSpaces() {

Callers

nothing calls this directly

Calls 4

applyDocumentMethod · 0.80
beginInlineEditMethod · 0.80
isEditingMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected