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

Function main

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

Source from the content-addressed store, hash-verified

285}
286
287int main(int argc, char *argv[])
288{
289 bool ok = true;
290 /* Dummy for migration hooks */
291 struct plugin *plugin = tal(NULL, struct plugin);
292 list_head_init(&plugin->js_list);
293
294 common_setup(argv[0]);
295
296 if (HAVE_SQLITE3) {
297 ok &= test_db_migrate(plugin);
298 }
299
300 tal_free(plugin);
301 common_shutdown();
302 return !ok;
303}

Callers

nothing calls this directly

Calls 5

list_head_initFunction · 0.85
common_setupFunction · 0.85
test_db_migrateFunction · 0.85
tal_freeFunction · 0.85
common_shutdownFunction · 0.85

Tested by

no test coverage detected