MCPcopy Index your code
hub / github.com/cameri/nostream / createRow

Function createRow

test/unit/cli/export.spec.ts:21–29  ·  view source on GitHub ↗
(idHex: string, createdAt: number)

Source from the content-addressed store, hash-verified

19}
20
21const createRow = (idHex: string, createdAt: number): EventRow => ({
22 event_id: Buffer.from(idHex, 'hex'),
23 event_pubkey: Buffer.from('11'.repeat(32), 'hex'),
24 event_kind: 1,
25 event_created_at: createdAt,
26 event_content: `event-${createdAt}`,
27 event_tags: [['p', 'abc']],
28 event_signature: Buffer.from('22'.repeat(64), 'hex'),
29})
30
31const createMockDb = (rows: EventRow[]) => {
32 const makeQuery = () => ({

Callers 1

export.spec.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected