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

Function g

__tests__/ui-steps-program.test.ts:20–22  ·  view source on GitHub ↗

A guard, with the fields the fold reads: which decision, which arm, how the arm leaves.

(text: string, opts: Partial<BranchGuard> = {})

Source from the content-addressed store, hash-verified

18
19/** A guard, with the fields the fold reads: which decision, which arm, how the arm leaves. */
20function g(text: string, opts: Partial<BranchGuard> = {}): BranchGuard {
21 return { text, negated: false, form: 'if', line: 1, branch: `b:${text}`, ...opts };
22}
23
24/** A site at the next line, reaching a step. */
25function at(step: string, guards: BranchGuard[] = [], extra: Partial<ProgramSite> = {}): ProgramSite {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected