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

Function main

wallet/test/run-db.c:566–587  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

564}
565
566int main(int argc, char *argv[])
567{
568 bool ok = true;
569 /* Dummy for migration hooks */
570 struct lightningd *ld = tal(NULL, struct lightningd);
571
572 common_setup(argv[0]);
573 ld->config = test_config;
574
575 /* We do a runtime test here, so we still check compile! */
576 if (HAVE_SQLITE3) {
577 ok &= test_empty_db_migrate(ld);
578 ok &= test_vars(ld);
579 ok &= test_primitives();
580 ok &= test_manip_columns();
581 }
582
583 tal_free(ld);
584 common_shutdown();
585 trace_cleanup();
586 return !ok;
587}

Callers

nothing calls this directly

Calls 8

common_setupFunction · 0.85
test_empty_db_migrateFunction · 0.85
test_varsFunction · 0.85
test_manip_columnsFunction · 0.85
tal_freeFunction · 0.85
common_shutdownFunction · 0.85
trace_cleanupFunction · 0.85
test_primitivesFunction · 0.70

Tested by

no test coverage detected