MCPcopy Index your code
hub / github.com/nodejs/node / createTestDatabase

Function createTestDatabase

test/parallel/test-sqlite-authz.js:11–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9
10suite('DatabaseSync.prototype.setAuthorizer()', () => {
11 const createTestDatabase = () => {
12 const db = new DatabaseSync(':memory:');
13 db.exec('CREATE TABLE users (id INTEGER, name TEXT)');
14 return db;
15 };
16
17 it('receives correct parameters for SELECT operations', (t) => {
18 const authorizer = t.mock.fn(() => constants.SQLITE_OK);

Callers 1

Calls 1

execMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…