MCPcopy Create free account
hub / github.com/EvoMap/evolver / inboundTextForLineBytes

Function inboundTextForLineBytes

test/mailboxStore.test.js:55–60  ·  view source on GitHub ↗
(maxBytes, { id, type, now })

Source from the content-addressed store, hash-verified

53}
54
55function inboundTextForLineBytes(maxBytes, { id, type, now }) {
56 const baseLine = JSON.stringify(inboundRow({ id, type, text: '', now })) + '\n';
57 const fillerBytes = maxBytes - Buffer.byteLength(baseLine, 'utf8');
58 assert.ok(fillerBytes >= 0, 'test fixture base row must fit below max line bytes');
59 return 'a'.repeat(fillerBytes);
60}
61
62describe('generateUUIDv7', () => {
63 it('returns a valid UUID v7 format', () => {

Callers 1

Calls 1

inboundRowFunction · 0.85

Tested by

no test coverage detected