LCOV - code coverage report
Current view: top level - backenddb Hit Total Coverage
Test: coverage.info Lines: 2501 5339 46.8 %
Date: 2025-08-28 06:06:54 Functions: 160 352 45.5 %

Filename Sort by name Line Coverage Sort by line coverage Functions Sort by function coverage
merchantdb_helper.c
55.3%55.3%
55.3 % 26 / 47 50.0 % 3 / 6
merchantdb_plugin.c
73.7%73.7%
73.7 % 14 / 19 100.0 % 2 / 2
pg_account_kyc_get_status.c
86.4%86.4%
86.4 % 38 / 44 100.0 % 2 / 2
pg_account_kyc_set_failed.c
0.0%
0.0 % 0 / 36 0.0 % 0 / 1
pg_account_kyc_set_status.c
90.9%90.9%
90.9 % 40 / 44 100.0 % 1 / 1
pg_activate_account.c
0.0%
0.0 % 0 / 8 0.0 % 0 / 1
pg_check_transfer_exists.c
100.0%
100.0 % 9 / 9 100.0 % 1 / 1
pg_delete_category.c
0.0%
0.0 % 0 / 8 0.0 % 0 / 1
pg_delete_contract_terms.c
100.0%
100.0 % 11 / 11 100.0 % 1 / 1
pg_delete_donau_instance.c
0.0%
0.0 % 0 / 8 0.0 % 0 / 1
pg_delete_exchange_accounts.c
100.0%
100.0 % 7 / 7 100.0 % 1 / 1
pg_delete_instance_private_key.c
100.0%
100.0 % 7 / 7 100.0 % 1 / 1
pg_delete_login_token.c
100.0%
100.0 % 16 / 16 100.0 % 2 / 2
pg_delete_order.c
69.6%69.6%
69.6 % 16 / 23 100.0 % 1 / 1
pg_delete_otp.c
0.0%
0.0 % 0 / 8 0.0 % 0 / 1
pg_delete_pending_webhook.c
100.0%
100.0 % 7 / 7 100.0 % 1 / 1
pg_delete_product.c
100.0%
100.0 % 8 / 8 100.0 % 1 / 1
pg_delete_template.c
100.0%
100.0 % 8 / 8 100.0 % 1 / 1
pg_delete_token_family.c
0.0%
0.0 % 0 / 8 0.0 % 0 / 1
pg_delete_transfer.c
100.0%
100.0 % 8 / 8 100.0 % 1 / 1
pg_delete_webhook.c
100.0%
100.0 % 8 / 8 100.0 % 1 / 1
pg_expire_locks.c
73.9%73.9%
73.9 % 17 / 23 100.0 % 1 / 1
pg_finalize_transfer_status.c
100.0%
100.0 % 13 / 13 100.0 % 1 / 1
pg_gc.c
0.0%
0.0 % 0 / 15 0.0 % 0 / 1
pg_get_kyc_limits.c
100.0%
100.0 % 14 / 14 100.0 % 1 / 1
pg_get_kyc_status.c
100.0%
100.0 % 26 / 26 100.0 % 1 / 1
pg_helper.c
59.6%59.6%
59.6 % 31 / 52 75.0 % 3 / 4
pg_inactivate_account.c
100.0%
100.0 % 8 / 8 100.0 % 1 / 1
pg_increase_refund.c
70.9%70.9%
70.9 % 144 / 203 100.0 % 6 / 6
pg_insert_account.c
100.0%
100.0 % 17 / 17 100.0 % 1 / 1
pg_insert_category.c
0.0%
0.0 % 0 / 11 0.0 % 0 / 1
pg_insert_contract_terms.c
85.7%85.7%
85.7 % 24 / 28 100.0 % 1 / 1
pg_insert_deposit.c
100.0%
100.0 % 15 / 15 100.0 % 1 / 1
pg_insert_deposit_confirmation.c
100.0%
100.0 % 26 / 26 100.0 % 1 / 1
pg_insert_deposit_to_transfer.c
100.0%
100.0 % 15 / 15 100.0 % 1 / 1
pg_insert_exchange_account.c
100.0%
100.0 % 13 / 13 100.0 % 1 / 1
pg_insert_exchange_keys.c
100.0%
100.0 % 16 / 16 100.0 % 1 / 1
pg_insert_exchange_signkey.c
100.0%
100.0 % 12 / 12 100.0 % 1 / 1
pg_insert_instance.c
97.2%97.2%
97.2 % 35 / 36 100.0 % 1 / 1
pg_insert_issued_token.c
80.0%80.0%
80.0 % 16 / 20 100.0 % 1 / 1
pg_insert_login_token.c
100.0%
100.0 % 12 / 12 100.0 % 1 / 1
pg_insert_order.c
100.0%
100.0 % 24 / 24 100.0 % 1 / 1
pg_insert_order_blinded_sigs.c
100.0%
100.0 % 10 / 10 100.0 % 1 / 1
pg_insert_order_lock.c
100.0%
100.0 % 10 / 10 100.0 % 1 / 1
pg_insert_otp.c
100.0%
100.0 % 13 / 13 100.0 % 1 / 1
pg_insert_pending_webhook.c
85.7%85.7%
85.7 % 12 / 14 100.0 % 1 / 1
pg_insert_product.c
100.0%
100.0 % 28 / 28 100.0 % 1 / 1
pg_insert_refund_proof.c
100.0%
100.0 % 9 / 9 100.0 % 1 / 1
pg_insert_spent_token.c
87.5%87.5%
87.5 % 21 / 24 100.0 % 1 / 1
pg_insert_template.c
100.0%
100.0 % 16 / 16 100.0 % 1 / 1
pg_insert_token_family.c
90.0%90.0%
90.0 % 27 / 30 100.0 % 1 / 1
pg_insert_token_family_key.c
81.8%81.8%
81.8 % 27 / 33 100.0 % 1 / 1
pg_insert_transfer.c
100.0%
100.0 % 16 / 16 100.0 % 1 / 1
pg_insert_transfer_details.c
76.2%76.2%
76.2 % 48 / 63 100.0 % 1 / 1
pg_insert_webhook.c
88.2%88.2%
88.2 % 15 / 17 100.0 % 1 / 1
pg_lock_product.c
100.0%
100.0 % 11 / 11 100.0 % 1 / 1
pg_lookup_account.c
0.0%
0.0 % 0 / 10 0.0 % 0 / 1
pg_lookup_all_products.c
0.0%
0.0 % 0 / 39 0.0 % 0 / 2
pg_lookup_categories.c
0.0%
0.0 % 0 / 26 0.0 % 0 / 2
pg_lookup_contract_terms.c
93.3%93.3%
93.3 % 14 / 15 100.0 % 1 / 1
pg_lookup_contract_terms2.c
94.7%94.7%
94.7 % 18 / 19 100.0 % 1 / 1
pg_lookup_contract_terms3.c
100.0%
100.0 % 27 / 27 100.0 % 1 / 1
pg_lookup_deposits.c
90.0%90.0%
90.0 % 27 / 30 100.0 % 2 / 2
pg_lookup_deposits_by_contract_and_coin.c
56.9%56.9%
56.9 % 41 / 72 100.0 % 3 / 3
pg_lookup_deposits_by_order.c
86.7%86.7%
86.7 % 26 / 30 100.0 % 2 / 2
pg_lookup_expected_transfers.c
0.0%
0.0 % 0 / 54 0.0 % 0 / 2
pg_lookup_instance_auth.c
100.0%
100.0 % 10 / 10 100.0 % 1 / 1
pg_lookup_instances.c
90.7%90.7%
90.7 % 49 / 54 100.0 % 3 / 3
pg_lookup_login_tokens.c
88.2%88.2%
88.2 % 30 / 34 100.0 % 2 / 2
pg_lookup_order.c
95.8%95.8%
95.8 % 23 / 24 100.0 % 1 / 1
pg_lookup_order_by_fulfillment.c
100.0%
100.0 % 12 / 12 100.0 % 1 / 1
pg_lookup_order_status.c
100.0%
100.0 % 15 / 15 100.0 % 1 / 1
pg_lookup_order_status_by_serial.c
100.0%
100.0 % 13 / 13 100.0 % 1 / 1
pg_lookup_order_summary.c
100.0%
100.0 % 11 / 11 100.0 % 1 / 1
pg_lookup_orders.c
91.3%91.3%
91.3 % 42 / 46 100.0 % 2 / 2
pg_lookup_otp_devices.c
0.0%
0.0 % 0 / 24 0.0 % 0 / 2
pg_lookup_pending_deposits.c
88.9%88.9%
88.9 % 32 / 36 100.0 % 2 / 2
pg_lookup_pending_webhooks.c
66.1%66.1%
66.1 % 37 / 56 75.0 % 3 / 4
pg_lookup_product.c
100.0%
100.0 % 53 / 53 100.0 % 1 / 1
pg_lookup_products.c
85.7%85.7%
85.7 % 24 / 28 100.0 % 2 / 2
pg_lookup_refund_proof.c
100.0%
100.0 % 10 / 10 100.0 % 1 / 1
pg_lookup_refunds.c
59.3%59.3%
59.3 % 16 / 27 100.0 % 2 / 2
pg_lookup_refunds_detailed.c
90.9%90.9%
90.9 % 30 / 33 100.0 % 2 / 2
pg_lookup_spent_tokens_by_order.c
48.3%48.3%
48.3 % 14 / 29 100.0 % 2 / 2
pg_lookup_statistics_amount_by_bucket.c
89.5%89.5%
89.5 % 51 / 57 100.0 % 2 / 2
pg_lookup_statistics_amount_by_interval.c
44.4%44.4%
44.4 % 28 / 63 100.0 % 3 / 3
pg_lookup_statistics_counter_by_bucket.c
83.9%83.9%
83.9 % 26 / 31 100.0 % 2 / 2
pg_lookup_statistics_counter_by_interval.c
80.0%80.0%
80.0 % 40 / 50 100.0 % 3 / 3
pg_lookup_template.c
88.2%88.2%
88.2 % 15 / 17 100.0 % 1 / 1
pg_lookup_templates.c
83.3%83.3%
83.3 % 20 / 24 100.0 % 2 / 2
pg_lookup_token_families.c
0.0%
0.0 % 0 / 27 0.0 % 0 / 2
pg_lookup_token_family.c
0.0%
0.0 % 0 / 36 0.0 % 0 / 1
pg_lookup_token_family_key.c
86.0%86.0%
86.0 % 37 / 43 100.0 % 1 / 1
pg_lookup_token_family_keys.c
84.6%84.6%
84.6 % 44 / 52 100.0 % 2 / 2
pg_lookup_transfer_details.c
0.0%
0.0 % 0 / 29 0.0 % 0 / 2
pg_lookup_transfer_details_by_order.c
86.7%86.7%
86.7 % 26 / 30 100.0 % 2 / 2
pg_lookup_transfer_summary.c
0.0%
0.0 % 0 / 27 0.0 % 0 / 2
pg_lookup_transfers.c
93.2%93.2%
93.2 % 41 / 44 100.0 % 2 / 2
pg_lookup_webhook.c
88.2%88.2%
88.2 % 15 / 17 100.0 % 1 / 1
pg_lookup_webhook_by_event.c
86.2%86.2%
86.2 % 25 / 29 100.0 % 2 / 2
pg_lookup_webhooks.c
83.3%83.3%
83.3 % 20 / 24 100.0 % 2 / 2
pg_lookup_wire_fee.c
100.0%
100.0 % 17 / 17 100.0 % 1 / 1
pg_mark_contract_paid.c
91.7%91.7%
91.7 % 22 / 24 100.0 % 1 / 1
pg_mark_order_wired.c
0.0%
0.0 % 0 / 7 0.0 % 0 / 1
pg_purge_instance.c
100.0%
100.0 % 7 / 7 100.0 % 1 / 1
pg_refund_coin.c
100.0%
100.0 % 10 / 10 100.0 % 1 / 1
pg_select_account.c
0.0%
0.0 % 0 / 16 0.0 % 0 / 1
pg_select_account_by_uri.c
0.0%
0.0 % 0 / 18 0.0 % 0 / 1
pg_select_accounts.c
89.2%89.2%
89.2 % 33 / 37 100.0 % 2 / 2
pg_select_accounts_by_exchange.c
0.0%
0.0 % 0 / 28 0.0 % 0 / 2
pg_select_category.c
0.0%
0.0 % 0 / 16 0.0 % 0 / 1
pg_select_category_by_name.c
0.0%
0.0 % 0 / 11 0.0 % 0 / 1
pg_select_exchange_keys.c
88.9%88.9%
88.9 % 16 / 18 100.0 % 1 / 1
pg_select_login_token.c
100.0%
100.0 % 11 / 11 100.0 % 1 / 1
pg_select_open_transfers.c
85.2%85.2%
85.2 % 23 / 27 100.0 % 2 / 2
pg_select_order_blinded_sigs.c
55.0%55.0%
55.0 % 11 / 20 100.0 % 2 / 2
pg_select_otp.c
84.2%84.2%
84.2 % 16 / 19 100.0 % 1 / 1
pg_select_otp_serial.c
100.0%
100.0 % 10 / 10 100.0 % 1 / 1
pg_select_wirewatch_accounts.c
84.6%84.6%
84.6 % 22 / 26 100.0 % 2 / 2
pg_store_wire_fee_by_exchange.c
100.0%
100.0 % 14 / 14 100.0 % 1 / 1
pg_unlock_inventory.c
100.0%
100.0 % 7 / 7 100.0 % 1 / 1
pg_update_account.c
0.0%
0.0 % 0 / 12 0.0 % 0 / 1
pg_update_category.c
0.0%
0.0 % 0 / 10 0.0 % 0 / 1
pg_update_contract_terms.c
0.0%
0.0 % 0 / 28 0.0 % 0 / 1
pg_update_deposit_confirmation_status.c
0.0%
0.0 % 0 / 14 0.0 % 0 / 1
pg_update_donau_instance_receipts_amount.c
0.0%
0.0 % 0 / 8 0.0 % 0 / 1
pg_update_instance.c
100.0%
100.0 % 25 / 25 100.0 % 1 / 1
pg_update_instance_auth.c
100.0%
100.0 % 9 / 9 100.0 % 1 / 1
pg_update_otp.c
0.0%
0.0 % 0 / 15 0.0 % 0 / 1
pg_update_pending_webhook.c
0.0%
0.0 % 0 / 8 0.0 % 0 / 1
pg_update_product.c
94.6%94.6%
94.6 % 35 / 37 100.0 % 1 / 1
pg_update_template.c
100.0%
100.0 % 16 / 16 100.0 % 1 / 1
pg_update_token_family.c
0.0%
0.0 % 0 / 16 0.0 % 0 / 1
pg_update_transfer_status.c
93.8%93.8%
93.8 % 15 / 16 100.0 % 1 / 1
pg_update_webhook.c
88.2%88.2%
88.2 % 15 / 17 100.0 % 1 / 1
pg_update_wirewatch_progress.c
100.0%
100.0 % 9 / 9 100.0 % 1 / 1
plugin_merchantdb_postgres.c
96.7%96.7%
96.7 % 208 / 215 100.0 % 10 / 10
test_merchantdb.c
1.3%1.3%
1.3 % 24 / 1869 1.3 % 2 / 150

Generated by: LCOV version 1.16