MCPcopy Create free account
hub / github.com/ElementsProject/lightning / create_test_db

Function create_test_db

plugins/bkpr/test/run-bkpr_db.c:248–260  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

246}
247
248static struct db *create_test_db(void)
249{
250 struct db *db;
251 char *dsn;
252
253 dsn = tmp_dsn(NULL);
254 db = db_open(NULL, dsn);
255 db->data_version = 0;
256 db->report_changes_fn = NULL;
257
258 tal_free(dsn);
259 return db;
260}
261
262static bool test_db_migrate(struct plugin *plugin)
263{

Callers 1

test_db_migrateFunction · 0.70

Calls 3

db_openFunction · 0.85
tal_freeFunction · 0.85
tmp_dsnFunction · 0.70

Tested by

no test coverage detected