MCPcopy
hub / github.com/WiseLibs/better-sqlite3 / whileClosed

Function whileClosed

test/42.integrity.js:36–39  ·  view source on GitHub ↗
(self, fn)

Source from the content-addressed store, hash-verified

34 expect(count).to.equal(5);
35 };
36 const whileClosed = (self, fn) => {
37 self.db.close();
38 fn();
39 };
40
41 describe('Database#prepare()', function () {
42 specify('while iterating (allowed)', function () {

Callers 1

42.integrity.jsFile · 0.85

Calls 1

fnFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…