MCPcopy Create free account
hub / github.com/deepclause/agentvm / generateTestData

Function generateTestData

test/data-integrity.test.js:17–27  ·  view source on GitHub ↗
(size)

Source from the content-addressed store, hash-verified

15
16// Generate a predictable test payload
17function generateTestData(size) {
18 const buf = Buffer.alloc(size);
19 // Fill with a repeating pattern that's easy to verify
20 // Pattern: 4-byte sequence number (big-endian) repeated
21 for (let i = 0; i < size; i += 4) {
22 const remaining = Math.min(4, size - i);
23 const seqNum = Math.floor(i / 4);
24 buf.writeUInt32BE(seqNum, i);
25 }
26 return buf;
27}
28
29// Verify the test data is intact
30function verifyTestData(buf) {

Callers 1

runTestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected