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

Method testIsReadableOverflow

tests/test_core.cpp:192–205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

190 }
191
192 void testIsReadableOverflow() {
193 QByteArray data(16, '\0');
194 rcx::BufferProvider prov(data);
195 // Normal cases
196 QVERIFY(prov.isReadable(0, 16));
197 QVERIFY(!prov.isReadable(0, 17));
198 // Large address
199 QVERIFY(!prov.isReadable(0xFFFFFFFFFFFFFFFFULL, 1));
200 // Negative len
201 QVERIFY(!prov.isReadable(0, -1));
202 // Zero len is readable
203 QVERIFY(prov.isReadable(0, 0));
204 QVERIFY(prov.isReadable(16, 0));
205 }
206
207 void testAlignmentFor() {
208 QCOMPARE(rcx::alignmentFor(rcx::NodeKind::Hex8), 1);

Callers

nothing calls this directly

Calls 1

isReadableMethod · 0.45

Tested by

no test coverage detected