LCOV - differential code coverage report
Current view: top level - src/backend/replication/logical - slotsync.c (source / functions) Coverage Total Hit UNC UBC GBC GNC CBC EUB ECB DUB DCB
Current: 0e5ff9b9b45a657aea12440478dc002e9b01f138 vs 0123ce131fca454009439dfa3b2266d1d40737d7 Lines: 89.9 % 536 482 17 37 1 112 369 8 65
Current Date: 2026-03-14 14:10:32 -0400 Functions: 100.0 % 30 30 17 13 7
Baseline: lcov-20260315-024220-baseline Branches: 61.0 % 372 227 44 101 1 54 172 16 14 27 31
Baseline Date: 2026-03-14 15:27:56 +0100 Line coverage date bins:
Legend: Lines:     hit not hit
Branches: + taken - not taken # not executed
(7,30] days: 0.0 % 1 0 1
(30,360] days: 87.5 % 160 140 16 4 112 28
(360..) days: 91.2 % 375 342 33 1 341
Function coverage date bins:
(30,360] days: 100.0 % 10 10 10
(360..) days: 100.0 % 20 20 7 13
Branch coverage date bins:
(7,30] days: 0.0 % 2 0 2
(30,360] days: 56.3 % 126 71 42 11 54 17 1 1
(360..) days: 56.9 % 274 156 90 1 155 15 13

Function Name Sort by function name TLA Hit count Sort by function hit count Lines Sort by unexercised lines in function Branches Sort by unexercised branches in function
CheckAndGetDbnameFromConninfo CBC 15 100.0 % (5 / 5) 75.0 % (3 / 4)
IsSyncingReplicationSlots CBC 73 100.0 % (2 / 2)
ReplSlotSyncWorkerMain GNC 5 96.4 % (53 / 55) 50.0 % (10 / 20)
ShutDownSlotSync GNC 939 81.8 % (18 / 22) 50.0 % (5 / 10)
SlotSyncShmemInit CBC 1150 100.0 % (9 / 9) 50.0 % (1 / 2)
SlotSyncShmemSize CBC 3297 100.0 % (2 / 2)
SlotSyncWorkerCanRestart GNC 10 100.0 % (8 / 8) 66.7 % (4 / 6)
SyncReplicationSlots GNC 9 100.0 % (26 / 26) 85.7 % (12 / 14)
ValidateSlotSyncParams GNC 21 57.1 % (8 / 14) 40.0 % (8 / 20)
check_and_set_sync_info GNC 14 81.8 % (9 / 11) 33.3 % (2 / 6)
drop_local_obsolete_slots CBC 27 100.0 % (14 / 14) 75.0 % (12 / 16)
extract_slot_names GNC 1 100.0 % (6 / 6) 83.3 % (5 / 6)
fetch_remote_slots GNC 28 92.7 % (51 / 55) 60.9 % (28 / 46)
get_local_synced_slots CBC 27 100.0 % (10 / 10) 87.5 % (7 / 8)
local_sync_slot_required CBC 41 100.0 % (13 / 13) 87.5 % (14 / 16)
reserve_wal_for_local_slot CBC 7 88.9 % (16 / 18) 50.0 % (6 / 12)
slotsync_failure_callback CBC 1 88.9 % (8 / 9) 50.0 % (2 / 4)
slotsync_reread_config GNC 1 71.9 % (23 / 32) 30.8 % (8 / 26)
slotsync_worker_disconnect CBC 5 100.0 % (4 / 4)
slotsync_worker_onexit CBC 5 90.9 % (10 / 11) 50.0 % (2 / 4)
synchronize_one_slot GNC 46 77.8 % (42 / 54) 50.0 % (11 / 22)
update_slotsync_skip_stats GNC 46 100.0 % (10 / 10) 83.3 % (5 / 6)
update_synced_slots_inactive_since GNC 939 100.0 % (15 / 15) 77.8 % (14 / 18)
validate_remote_info CBC 14 89.3 % (25 / 28) 50.0 % (12 / 24)
wait_for_slot_activity CBC 19 100.0 % (8 / 8) 100.0 % (4 / 4)

Generated by: LCOV version 2.4-beta