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

Function main

plugins/bkpr/test/run-recorder.c:1645–1666  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1643}
1644
1645int main(int argc, char *argv[])
1646{
1647 bool ok = true;
1648
1649 common_setup(argv[0]);
1650
1651 /* UBSan insists cmd isn't NULL */
1652 cmd = tal(tmpctx, struct command);
1653 ok &= test_account_crud(tmpctx);
1654 ok &= test_channel_event_crud(tmpctx);
1655 ok &= test_chain_event_crud(tmpctx);
1656 ok &= test_account_balances(tmpctx);
1657 ok &= test_onchain_fee_chan_close(tmpctx);
1658 ok &= test_onchain_fee_chan_open(tmpctx);
1659 ok &= test_channel_rebalances(tmpctx);
1660 ok &= test_onchain_fee_wallet_spend(tmpctx);
1661 sqlite3_close(bkpr_db);
1662
1663 common_shutdown();
1664 trace_cleanup();
1665 return !ok;
1666}
1667#else /* No sqlite, no test! */
1668const jsmntok_t *jsonrpc_request_sync(const tal_t *ctx,
1669 struct command *cmd,

Callers

nothing calls this directly

Calls 11

common_setupFunction · 0.85
test_account_crudFunction · 0.85
test_channel_event_crudFunction · 0.85
test_chain_event_crudFunction · 0.85
test_account_balancesFunction · 0.85
test_channel_rebalancesFunction · 0.85
common_shutdownFunction · 0.85
trace_cleanupFunction · 0.85

Tested by

no test coverage detected