MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / push

Function push

graph-ui/src/graph/navigation-history.test.ts:17–17  ·  view source on GitHub ↗
(history: NavigationHistory<Entry>, ...entries: Entry[])

Source from the content-addressed store, hash-verified

15const options: NavigationHistoryOptions<Entry> = { key: (entry) => `${entry.root ?? '*'}@${entry.depth}`, recentKey: (entry) => entry.root };
16const keys = (history: NavigationHistory<Entry>) => history.entries.map(options.key);
17const push = (history: NavigationHistory<Entry>, ...entries: Entry[]) => entries.reduce((next, entry) => pushNavigation(next, entry, options), history);
18
19describe('bounded back and forward history', () => {
20 it('moves a cursor back and forward like a browser, and stops at both ends', () => {

Callers 1

Calls 2

pushNavigationFunction · 0.90
reduceMethod · 0.80

Tested by

no test coverage detected