MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / emission

Function emission

__tests__/explore-session-state.test.ts:43–52  ·  view source on GitHub ↗

An emission shaped like a real one, for the container-level tests.

(root: string, over: Partial<ExploreEmission> = {})

Source from the content-addressed store, hash-verified

41
42/** An emission shaped like a real one, for the container-level tests. */
43function emission(root: string, over: Partial<ExploreEmission> = {}): ExploreEmission {
44 return {
45 projectRoot: root,
46 query: 'q',
47 files: [{ path: 'a.ts', ranges: [{ start: 1, end: 10 }], bytes: 100 }],
48 sourceBytes: 100,
49 responseBytes: 400,
50 ...over,
51 };
52}
53
54describe('ExploreSessionState — the container', () => {
55 it('counts calls per project and hands back a 1-based session index', () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected