| 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 |
nothing calls this directly
no test coverage detected