| 295 | } |
| 296 | |
| 297 | void testKindMetaCompleteness() { |
| 298 | // Every NodeKind enum value must have a KindMeta entry |
| 299 | for (int i = 0; i <= static_cast<int>(rcx::NodeKind::Array); i++) { |
| 300 | auto kind = static_cast<rcx::NodeKind>(i); |
| 301 | const rcx::KindMeta* m = rcx::kindMeta(kind); |
| 302 | QVERIFY2(m != nullptr, |
| 303 | qPrintable(QString("Missing KindMeta for kind %1").arg(i))); |
| 304 | QCOMPARE(m->kind, kind); |
| 305 | QVERIFY(m->name != nullptr); |
| 306 | QVERIFY(m->typeName != nullptr); |
| 307 | QVERIFY(m->lines >= 1); |
| 308 | QVERIFY(m->align >= 1); |
| 309 | } |
| 310 | // sizeForKind/linesForKind/alignmentFor must agree with table |
| 311 | for (const auto& m : rcx::kKindMeta) { |
| 312 | QCOMPARE(rcx::sizeForKind(m.kind), m.size); |
| 313 | QCOMPARE(rcx::linesForKind(m.kind), m.lines); |
| 314 | QCOMPARE(rcx::alignmentFor(m.kind), m.align); |
| 315 | } |
| 316 | } |
| 317 | |
| 318 | void testColumnSpan_field() { |
| 319 | rcx::LineMeta lm; |
nothing calls this directly
no test coverage detected