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

Method testPointerInvalid

tests/test_validation.cpp:410–429  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

408 // ── Pointer: hex-only parsing ──
409
410 void testPointerInvalid() {
411 bool ok;
412 // Valid
413 fmt::parseValue(NodeKind::Pointer64, "0x7FFE3B8D4260", &ok);
414 QVERIFY(ok);
415
416 fmt::parseValue(NodeKind::Pointer64, "7FFE3B8D4260", &ok);
417 QVERIFY(ok);
418
419 // Invalid chars
420 fmt::parseValue(NodeKind::Pointer64, "0xGGGG", &ok);
421 QVERIFY(!ok);
422
423 // Pointer32 overflow
424 fmt::parseValue(NodeKind::Pointer32, "0x100000000", &ok);
425 QVERIFY2(!ok, "0x100000000 overflows ptr32");
426
427 fmt::parseValue(NodeKind::Pointer32, "0xFFFFFFFF", &ok);
428 QVERIFY(ok);
429 }
430
431 // ── validateValue: error message testing ──
432

Callers

nothing calls this directly

Calls 1

parseValueFunction · 0.85

Tested by

no test coverage detected