LCOV - code coverage report
Current view: top level - exchangedb Coverage Total Hit
Test: coverage.info Lines: 39.5 % 8581 3393
Test Date: 2025-12-28 14:06:02 Functions: 51.4 % 416 214

File Sort by file name Line Coverage Sort by line coverage Function Coverage Sort by function coverage
Rate Total Hit Rate Total Hit
exchangedb_accounts.c
77.9%77.9%
77.9 % 95 74 100.0 % 6 6
exchangedb_aml.c
30.5%30.5%
30.5 % 266 81 54.5 % 11 6
exchangedb_history.c
19.3%19.3%
19.3 % 88 17 28.6 % 7 2
exchangedb_plugin.c
66.7%66.7%
66.7 % 24 16 100.0 % 2 2
exchangedb_transactions.c
0.0%
0.0 % 96 0.0 % 1
pg_abort_shard.c
100.0%
100.0 % 8 8 100.0 % 1 1
pg_activate_signing_key.c
100.0%
100.0 % 10 10 100.0 % 1 1
pg_add_denomination_key.c
100.0%
100.0 % 19 19 100.0 % 1 1
pg_add_policy_fulfillment_proof.c
0.0%
0.0 % 49 0.0 % 2
pg_aggregate.c
90.2%90.2%
90.2 % 41 37 100.0 % 1 1
pg_batch_ensure_coin_known.c
0.0%
0.0 % 216 0.0 % 4
pg_begin_revolving_shard.c
55.6%55.6%
55.6 % 108 60 100.0 % 1 1
pg_begin_shard.c
54.1%54.1%
54.1 % 111 60 100.0 % 1 1
pg_clear_aml_lock.c
100.0%
100.0 % 6 6 100.0 % 1 1
pg_commit.c
100.0%
100.0 % 9 9 100.0 % 1 1
pg_complete_shard.c
100.0%
100.0 % 9 9 100.0 % 1 1
pg_compute_shard.c
100.0%
100.0 % 7 7 100.0 % 1 1
pg_count_known_coins.c
0.0%
0.0 % 11 0.0 % 1
pg_create_aggregation_transient.c
100.0%
100.0 % 11 11 100.0 % 1 1
pg_create_tables.c
83.3%83.3%
83.3 % 24 20 100.0 % 1 1
pg_delete_aggregation_transient.c
100.0%
100.0 % 7 7 100.0 % 1 1
pg_delete_shard_locks.c
0.0%
0.0 % 6 0.0 % 1
pg_disable_rules.c
0.0%
0.0 % 13 0.0 % 1
pg_do_check_deposit_idempotent.c
100.0%
100.0 % 42 42 100.0 % 1 1
pg_do_deposit.c
100.0%
100.0 % 53 53 100.0 % 1 1
pg_do_purse_delete.c
100.0%
100.0 % 12 12 100.0 % 1 1
pg_do_purse_deposit.c
100.0%
100.0 % 24 24 100.0 % 1 1
pg_do_purse_merge.c
100.0%
100.0 % 22 22 100.0 % 1 1
pg_do_recoup.c
0.0%
0.0 % 20 0.0 % 1
pg_do_recoup_refresh.c
0.0%
0.0 % 16 0.0 % 1
pg_do_refresh.c
85.5%85.5%
85.5 % 55 47 100.0 % 1 1
pg_do_refund.c
92.0%92.0%
92.0 % 25 23 100.0 % 1 1
pg_do_reserve_open.c
93.5%93.5%
93.5 % 31 29 100.0 % 1 1
pg_do_reserve_purse.c
100.0%
100.0 % 25 25 100.0 % 1 1
pg_do_withdraw.c
94.5%94.5%
94.5 % 55 52 100.0 % 1 1
pg_drain_kyc_alert.c
100.0%
100.0 % 8 8 100.0 % 1 1
pg_drop_tables.c
72.7%72.7%
72.7 % 11 8 100.0 % 1 1
pg_enable_rules.c
0.0%
0.0 % 19 0.0 % 1
pg_ensure_coin_known.c
65.9%65.9%
65.9 % 44 29 100.0 % 1 1
pg_event_listen.c
100.0%
100.0 % 3 3 100.0 % 1 1
pg_event_listen_cancel.c
100.0%
100.0 % 3 3 100.0 % 1 1
pg_event_notify.c
100.0%
100.0 % 4 4 100.0 % 1 1
pg_expire_purse.c
93.8%93.8%
93.8 % 16 15 100.0 % 1 1
pg_find_aggregation_transient.c
100.0%
100.0 % 11 11 100.0 % 1 1
pg_gc.c
0.0%
0.0 % 19 0.0 % 1
pg_get_coin_denomination.c
100.0%
100.0 % 10 10 100.0 % 1 1
pg_get_coin_transactions.c
36.7%36.7%
36.7 % 376 138 36.4 % 11 4
pg_get_denomination_by_serial.c
0.0%
0.0 % 19 0.0 % 1
pg_get_denomination_info.c
0.0%
0.0 % 25 0.0 % 1
pg_get_denomination_revocation.c
0.0%
0.0 % 9 0.0 % 1
pg_get_drain_profit.c
0.0%
0.0 % 13 0.0 % 1
pg_get_expired_reserves.c
78.4%78.4%
78.4 % 37 29 100.0 % 2 2
pg_get_extension_manifest.c
100.0%
100.0 % 9 9 100.0 % 1 1
pg_get_global_fee.c
100.0%
100.0 % 16 16 100.0 % 1 1
pg_get_global_fees.c
90.0%90.0%
90.0 % 30 27 100.0 % 2 2
pg_get_known_coin.c
0.0%
0.0 % 13 0.0 % 1
pg_get_kyc_rules.c
63.3%63.3%
63.3 % 30 19 50.0 % 2 1
pg_get_old_coin_by_h_blind.c
0.0%
0.0 % 9 0.0 % 1
pg_get_pending_kyc_requirement_process.c
100.0%
100.0 % 10 10 100.0 % 1 1
pg_get_policy_details.c
0.0%
0.0 % 13 0.0 % 1
pg_get_purse_deposit.c
0.0%
0.0 % 14 0.0 % 1
pg_get_purse_request.c
100.0%
100.0 % 14 14 100.0 % 1 1
pg_get_ready_deposit.c
100.0%
100.0 % 13 13 100.0 % 1 1
pg_get_refresh.c
74.7%74.7%
74.7 % 75 56 100.0 % 1 1
pg_get_reserve_balance.c
100.0%
100.0 % 11 11 100.0 % 1 1
pg_get_reserve_by_h_planchets.c
0.0%
0.0 % 9 0.0 % 1
pg_get_reserve_history.c
52.9%52.9%
52.9 % 310 164 60.0 % 10 6
pg_get_signature_for_known_coin.c
100.0%
100.0 % 10 10 100.0 % 1 1
pg_get_unfinished_close_requests.c
77.8%77.8%
77.8 % 36 28 100.0 % 2 2
pg_get_wire_accounts.c
78.4%78.4%
78.4 % 37 29 100.0 % 2 2
pg_get_wire_fee.c
100.0%
100.0 % 14 14 100.0 % 1 1
pg_get_wire_fees.c
85.2%85.2%
85.2 % 27 23 100.0 % 2 2
pg_get_wire_hash_for_contract.c
100.0%
100.0 % 14 14 100.0 % 1 1
pg_get_withdraw.c
76.4%76.4%
76.4 % 72 55 100.0 % 1 1
pg_have_deposit2.c
0.0%
0.0 % 27 0.0 % 1
pg_inject_auditor_triggers.c
0.0%
0.0 % 9 0.0 % 1
pg_insert_active_legitimization_measure.c
0.0%
0.0 % 11 0.0 % 1
pg_insert_aml_decision.c
93.3%93.3%
93.3 % 60 56 100.0 % 1 1
pg_insert_aml_officer.c
100.0%
100.0 % 13 13 100.0 % 1 1
pg_insert_aml_program_failure.c
0.0%
0.0 % 19 0.0 % 1
pg_insert_auditor.c
100.0%
100.0 % 9 9 100.0 % 1 1
pg_insert_auditor_denom_sig.c
100.0%
100.0 % 8 8 100.0 % 1 1
pg_insert_close_request.c
100.0%
100.0 % 11 11 100.0 % 1 1
pg_insert_contract.c
44.8%44.8%
44.8 % 29 13 100.0 % 1 1
pg_insert_denomination_info.c
100.0%
100.0 % 26 26 100.0 % 1 1
pg_insert_denomination_revocation.c
0.0%
0.0 % 7 0.0 % 1
pg_insert_drain_profit.c
0.0%
0.0 % 11 0.0 % 1
pg_insert_global_fee.c
43.6%43.6%
43.6 % 39 17 100.0 % 1 1
pg_insert_kyc_failure.c
95.5%95.5%
95.5 % 22 21 100.0 % 1 1
pg_insert_kyc_requirement_process.c
88.2%88.2%
88.2 % 17 15 100.0 % 1 1
pg_insert_partner.c
0.0%
0.0 % 12 0.0 % 1
pg_insert_purse_request.c
63.9%63.9%
63.9 % 36 23 100.0 % 1 1
pg_insert_records_by_table.c
0.0%
0.0 % 801 0.0 % 50
pg_insert_refund.c
0.0%
0.0 % 12 0.0 % 1
pg_insert_reserve_closed.c
75.0%75.0%
75.0 % 28 21 100.0 % 1 1
pg_insert_reserve_open_deposit.c
100.0%
100.0 % 13 13 100.0 % 1 1
pg_insert_sanction_list_hit.c
0.0%
0.0 % 27 0.0 % 1
pg_insert_signkey_revocation.c
0.0%
0.0 % 7 0.0 % 1
pg_insert_successor_measure.c
0.0%
0.0 % 23 0.0 % 1
pg_insert_wire.c
100.0%
100.0 % 15 15 100.0 % 1 1
pg_insert_wire_fee.c
50.0%50.0%
50.0 % 28 14 100.0 % 1 1
pg_iterate_active_auditors.c
89.5%89.5%
89.5 % 19 17 100.0 % 2 2
pg_iterate_active_signkeys.c
91.3%91.3%
91.3 % 23 21 100.0 % 2 2
pg_iterate_auditor_denominations.c
50.0%50.0%
50.0 % 18 9 100.0 % 2 2
pg_iterate_denomination_info.c
91.7%91.7%
91.7 % 36 33 100.0 % 2 2
pg_iterate_denominations.c
94.6%94.6%
94.6 % 37 35 100.0 % 2 2
pg_iterate_kyc_reference.c
0.0%
0.0 % 20 0.0 % 2
pg_iterate_reserve_close_info.c
60.0%60.0%
60.0 % 20 12 100.0 % 2 2
pg_kyc_provider_account_lookup.c
0.0%
0.0 % 11 0.0 % 1
pg_kycauth_in_insert.c
100.0%
100.0 % 22 22 100.0 % 1 1
pg_lookup_active_legitimization.c
100.0%
100.0 % 9 9 100.0 % 1 1
pg_lookup_aml_file_number.c
0.0%
0.0 % 9 0.0 % 1
pg_lookup_aml_history.c
0.0%
0.0 % 37 0.0 % 2
pg_lookup_aml_officer.c
0.0%
0.0 % 12 0.0 % 1
pg_lookup_auditor_status.c
100.0%
100.0 % 9 9 100.0 % 1 1
pg_lookup_auditor_timestamp.c
100.0%
100.0 % 8 8 100.0 % 1 1
pg_lookup_completed_legitimization.c
100.0%
100.0 % 16 16 100.0 % 1 1
pg_lookup_denomination_key.c
100.0%
100.0 % 17 17 100.0 % 1 1
pg_lookup_global_fee_by_time.c
30.8%30.8%
30.8 % 39 12 100.0 % 2 2
pg_lookup_h_payto_by_access_token.c
100.0%
100.0 % 9 9 100.0 % 1 1
pg_lookup_kyc_history.c
0.0%
0.0 % 38 0.0 % 2
pg_lookup_kyc_process_by_account.c
100.0%
100.0 % 15 15 100.0 % 1 1
pg_lookup_kyc_requirement_by_row.c
90.9%90.9%
90.9 % 33 30 100.0 % 1 1
pg_lookup_kyc_status_by_token.c
100.0%
100.0 % 9 9 100.0 % 1 1
pg_lookup_pending_legitimization.c
100.0%
100.0 % 12 12 100.0 % 1 1
pg_lookup_records_by_table.c
0.0%
0.0 % 1189 0.0 % 50
pg_lookup_rules_by_access_token.c
100.0%
100.0 % 10 10 100.0 % 1 1
pg_lookup_serial_by_table.c
0.0%
0.0 % 164 0.0 % 1
pg_lookup_signing_key.c
100.0%
100.0 % 10 10 100.0 % 1 1
pg_lookup_signkey_revocation.c
100.0%
100.0 % 8 8 100.0 % 1 1
pg_lookup_transfer_by_deposit.c
89.1%89.1%
89.1 % 55 49 100.0 % 1 1
pg_lookup_wire_fee_by_time.c
72.4%72.4%
72.4 % 29 21 100.0 % 2 2
pg_lookup_wire_timestamp.c
100.0%
100.0 % 8 8 100.0 % 1 1
pg_lookup_wire_transfer.c
87.5%87.5%
87.5 % 32 28 100.0 % 2 2
pg_mark_refresh_reveal_success.c
100.0%
100.0 % 6 6 100.0 % 1 1
pg_persist_kyc_attributes.c
91.9%91.9%
91.9 % 37 34 100.0 % 1 1
pg_persist_policy_details.c
0.0%
0.0 % 20 0.0 % 1
pg_preflight.c
90.3%90.3%
90.3 % 31 28 100.0 % 2 2
pg_profit_drains_get_pending.c
0.0%
0.0 % 13 0.0 % 1
pg_profit_drains_set_finished.c
0.0%
0.0 % 6 0.0 % 1
pg_release_revolving_shard.c
100.0%
100.0 % 9 9 100.0 % 1 1
pg_reserves_get.c
100.0%
100.0 % 11 11 100.0 % 1 1
pg_reserves_get_origin.c
100.0%
100.0 % 9 9 100.0 % 1 1
pg_reserves_in_insert.c
62.1%62.1%
62.1 % 140 87 100.0 % 3 3
pg_reserves_update.c
100.0%
100.0 % 9 9 100.0 % 1 1
pg_rollback.c
100.0%
100.0 % 10 10 100.0 % 1 1
pg_select_account_merges_above_serial_id.c
36.1%36.1%
36.1 % 36 13 100.0 % 2 2
pg_select_aggregation_amounts_for_kyc_check.c
41.2%41.2%
41.2 % 34 14 100.0 % 2 2
pg_select_aggregation_transient.c
100.0%
100.0 % 11 11 100.0 % 1 1
pg_select_aggregations_above_serial.c
0.0%
0.0 % 25 0.0 % 2
pg_select_all_kyc_attributes.c
0.0%
0.0 % 29 0.0 % 2
pg_select_all_purse_decisions_above_serial_id.c
46.2%46.2%
46.2 % 26 12 100.0 % 2 2
pg_select_all_purse_deletions_above_serial_id.c
46.2%46.2%
46.2 % 26 12 100.0 % 2 2
pg_select_aml_attributes.c
87.5%87.5%
87.5 % 32 28 100.0 % 2 2
pg_select_aml_decisions.c
89.6%89.6%
89.6 % 48 43 100.0 % 2 2
pg_select_aml_measures.c
86.1%86.1%
86.1 % 36 31 100.0 % 2 2
pg_select_aml_statistics.c
0.0%
0.0 % 27 0.0 % 2
pg_select_auditor_denom_sig.c
100.0%
100.0 % 9 9 100.0 % 1 1
pg_select_batch_deposits_missing_wire.c
0.0%
0.0 % 26 0.0 % 2
pg_select_coin_deposits_above_serial_id.c
31.7%31.7%
31.7 % 41 13 100.0 % 2 2
pg_select_contract.c
100.0%
100.0 % 10 10 100.0 % 1 1
pg_select_contract_by_purse.c
0.0%
0.0 % 10 0.0 % 1
pg_select_deposit_amounts_for_kyc_check.c
0.0%
0.0 % 34 0.0 % 2
pg_select_exchange_credit_transfers.c
0.0%
0.0 % 32 0.0 % 2
pg_select_exchange_debit_transfers.c
0.0%
0.0 % 32 0.0 % 2
pg_select_exchange_kycauth_transfers.c
0.0%
0.0 % 32 0.0 % 2
pg_select_kyc_accounts.c
0.0%
0.0 % 42 0.0 % 2
pg_select_kyc_attributes.c
84.0%84.0%
84.0 % 25 21 100.0 % 2 2
pg_select_merge_amounts_for_kyc_check.c
41.2%41.2%
41.2 % 34 14 100.0 % 2 2
pg_select_purse.c
100.0%
100.0 % 17 17 100.0 % 1 1
pg_select_purse_by_merge_pub.c
0.0%
0.0 % 14 0.0 % 1
pg_select_purse_decisions_above_serial_id.c
46.7%46.7%
46.7 % 30 14 100.0 % 2 2
pg_select_purse_deposits_above_serial_id.c
32.5%32.5%
32.5 % 40 13 100.0 % 2 2
pg_select_purse_deposits_by_purse.c
0.0%
0.0 % 28 0.0 % 2
pg_select_purse_merge.c
100.0%
100.0 % 14 14 100.0 % 1 1
pg_select_purse_merges_above_serial_id.c
36.1%36.1%
36.1 % 36 13 100.0 % 2 2
pg_select_purse_requests_above_serial_id.c
39.4%39.4%
39.4 % 33 13 100.0 % 2 2
pg_select_recoup_above_serial_id.c
37.1%37.1%
37.1 % 35 13 100.0 % 2 2
pg_select_recoup_refresh_above_serial_id.c
0.0%
0.0 % 37 0.0 % 2
pg_select_refreshes_above_serial_id.c
40.6%40.6%
40.6 % 32 13 100.0 % 2 2
pg_select_refunds_above_serial_id.c
29.2%29.2%
29.2 % 48 14 100.0 % 2 2
pg_select_refunds_by_coin.c
59.3%59.3%
59.3 % 27 16 100.0 % 2 2
pg_select_reserve_close_info.c
100.0%
100.0 % 10 10 100.0 % 1 1
pg_select_reserve_closed_above_serial_id.c
40.6%40.6%
40.6 % 32 13 100.0 % 2 2
pg_select_reserve_open_above_serial_id.c
41.9%41.9%
41.9 % 31 13 100.0 % 2 2
pg_select_reserves_in_above_serial_id.c
43.8%43.8%
43.8 % 32 14 100.0 % 2 2
pg_select_reserves_in_above_serial_id_by_account.c
0.0%
0.0 % 31 0.0 % 2
pg_select_wire_out_above_serial_id.c
44.8%44.8%
44.8 % 29 13 100.0 % 2 2
pg_select_wire_out_above_serial_id_by_account.c
0.0%
0.0 % 30 0.0 % 2
pg_select_withdraw_amounts_for_kyc_check.c
70.6%70.6%
70.6 % 34 24 100.0 % 2 2
pg_select_withdrawals_above_serial_id.c
28.3%28.3%
28.3 % 46 13 100.0 % 2 2
pg_set_aml_lock.c
0.0%
0.0 % 18 0.0 % 1
pg_set_extension_manifest.c
80.0%80.0%
80.0 % 10 8 100.0 % 1 1
pg_set_purse_balance.c
0.0%
0.0 % 7 0.0 % 1
pg_start.c
75.0%75.0%
75.0 % 16 12 100.0 % 1 1
pg_start_deferred_wire_out.c
70.6%70.6%
70.6 % 17 12 100.0 % 1 1
pg_start_read_committed.c
75.0%75.0%
75.0 % 16 12 100.0 % 1 1
pg_start_read_only.c
0.0%
0.0 % 16 0.0 % 1
pg_store_wire_transfer_out.c
100.0%
100.0 % 10 10 100.0 % 1 1
pg_test_aml_officer.c
100.0%
100.0 % 6 6 100.0 % 1 1
pg_trigger_kyc_rule_for_account.c
93.8%93.8%
93.8 % 32 30 100.0 % 1 1
pg_update_aggregation_transient.c
100.0%
100.0 % 9 9 100.0 % 1 1
pg_update_auditor.c
100.0%
100.0 % 10 10 100.0 % 1 1
pg_update_kyc_process_by_row.c
57.9%57.9%
57.9 % 38 22 100.0 % 1 1
pg_update_wire.c
100.0%
100.0 % 19 19 100.0 % 1 1
pg_wad_in_insert.c
0.0%
0.0 % 9 0.0 % 1
pg_wire_prepare_data_get.c
84.6%84.6%
84.6 % 26 22 100.0 % 2 2
pg_wire_prepare_data_insert.c
100.0%
100.0 % 7 7 100.0 % 1 1
pg_wire_prepare_data_mark_failed.c
0.0%
0.0 % 6 0.0 % 1
pg_wire_prepare_data_mark_finished.c
100.0%
100.0 % 6 6 100.0 % 1 1
plugin_exchangedb_common.c
43.7%43.7%
43.7 % 87 38 100.0 % 2 2
plugin_exchangedb_postgres.c
92.4%92.4%
92.4 % 262 242 100.0 % 2 2

Generated by: LCOV version 2.0-1