MCPcopy Create free account
hub / github.com/PatrickSys/codebase-context / makeMemory

Function makeMemory

tests/confidence-decay.test.ts:5–13  ·  view source on GitHub ↗
(overrides: Partial<Memory> & { type: Memory['type']; date: string })

Source from the content-addressed store, hash-verified

3import { computeConfidence, withConfidence } from '../src/memory/store.js';
4
5function makeMemory(overrides: Partial<Memory> & { type: Memory['type']; date: string }): Memory {
6 return {
7 id: 'test123',
8 category: 'conventions',
9 memory: 'test memory',
10 reason: 'test reason',
11 ...overrides
12 };
13}
14
15describe('Memory confidence decay', () => {
16 const now = new Date('2026-02-07T00:00:00.000Z');

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected