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

Function main

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

Source from the content-addressed store, hash-verified

259}
260
261int main(int argc, char *argv[])
262{
263 bool ok = true;
264 /* Dummy for migration hooks */
265 struct lightningd *ld = tal(NULL, struct lightningd);
266
267 common_setup(argv[0]);
268 ld->config = test_config;
269
270 /* We do a runtime test here, so we still check compile! */
271 if (HAVE_SQLITE3) {
272 ok &= test_empty_db_migrate(ld);
273 ok &= test_vars(ld);
274 ok &= test_primitives();
275 ok &= test_manip_columns();
276 }
277
278 tal_free(ld);
279 common_shutdown();
280 return !ok;
281}

Callers

nothing calls this directly

Calls 7

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
test_primitivesFunction · 0.70

Tested by

no test coverage detected