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

Function mapHref

ui/src/lib/navigation.ts:142–150  ·  view source on GitHub ↗
(opts = {})

Source from the content-addressed store, hash-verified

140 },
141
142 mapHref(opts = {}) {
143 const params = new URLSearchParams();
144 if (opts.root !== undefined && opts.root !== null) params.set('root', opts.root);
145 // Including 1: a reader who asked for top-level directories has said
146 // something, and dropping it would hand the choice back to the answer.
147 if (opts.depth) params.set('depth', String(opts.depth));
148 if (opts.tests) params.set('tests', '1');
149 return `#/map${query(params)}`;
150 },
151
152 flowHref(opts = {}) {
153 const params = new URLSearchParams();

Callers 1

ui-package.test.tsFile · 0.85

Calls 3

mapHrefMethod · 0.80
queryFunction · 0.70
setMethod · 0.45

Tested by

no test coverage detected