MCPcopy Create free account
hub / github.com/garrytan/gstack / makeStructureStats

Function makeStructureStats

browse/test/memory-command.test.ts:53–63  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

51// This is what bm.getMemorySnapshot would return; we stub the BrowserManager
52// so the test never spins up real Chromium.
53function makeStructureStats(): MemoryStructureStats {
54 return {
55 modificationHistory: { current: 42, cap: 200, evicted: 0 },
56 activitySubscribers: 1,
57 inspectorSubscribers: 0,
58 consoleBufferLen: 1842,
59 networkBufferLen: 12000,
60 dialogBufferLen: 3,
61 captureBufferBytes: 0,
62 };
63}
64
65function makeSnapshot(overrides: Partial<MemorySnapshot> = {}): MemorySnapshot {
66 return {

Callers 2

makeSnapshotFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected