| 1643 | } |
| 1644 | |
| 1645 | int 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! */ |
| 1668 | const jsmntok_t *jsonrpc_request_sync(const tal_t *ctx, |
| 1669 | struct command *cmd, |
nothing calls this directly
no test coverage detected