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

Function reopen

__tests__/fts5-fallback.test.ts:64–69  ·  view source on GitHub ↗
(connection: DatabaseConnection)

Source from the content-addressed store, hash-verified

62 }
63
64 function reopen(connection: DatabaseConnection): DatabaseConnection {
65 connection.close();
66 const reopened = DatabaseConnection.open(path.join(dir, 'test.db'));
67 connections.push(reopened);
68 return reopened;
69 }
70
71 it.each(['initialization', 'reopening'])('uses LIKE and fuzzy search after %s without FTS5', (state) => {
72 const attempts = simulateMissingFts5();

Callers 1

Calls 4

pushMethod · 0.80
closeMethod · 0.65
openMethod · 0.65
joinMethod · 0.45

Tested by

no test coverage detected