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

Function thrownBy

__tests__/sqlite-open-error.test.ts:95–102  ·  view source on GitHub ↗
(fn: () => unknown)

Source from the content-addressed store, hash-verified

93}
94
95function thrownBy(fn: () => unknown): unknown {
96 try {
97 fn();
98 } catch (err) {
99 return err;
100 }
101 throw new Error('expected a throw');
102}
103
104describe('naming a failed open', () => {
105 const dbPath = path.join('/projects', 'app', '.codegraph', 'codegraph.db');

Callers 1

Calls 1

fnFunction · 0.70

Tested by

no test coverage detected