LCOV - differential code coverage report
Current view: top level - src/backend/replication/logical - slotsync.c (source / functions) Coverage Total Hit UNC UBC GBC GIC GNC CBC EUB ECB DUB DCB
Current: d36b728949bf4e37ada1cd23e0f2aaa94f609a70 vs 52e118fe2f7e3381bdaa479816a7f72eda2ae517 Lines: 89.5 % 560 501 9 50 5 1 109 386 3 64
Current Date: 2026-06-29 16:15:13 +0200 Functions: 100.0 % 31 31 18 13 7
Baseline: lcov-20260630-baseline Branches: 59.5 % 390 232 24 134 4 50 178 16 14
Baseline Date: 2026-06-29 13:01:57 +0200 Line coverage date bins:
Legend: Lines:     hit not hit
Branches: + taken - not taken # not executed
(7,30] days: 100.0 % 7 7 7
(30,360] days: 84.5 % 193 163 9 21 109 54
(360..) days: 91.9 % 360 331 29 5 1 325
Function coverage date bins:
(30,360] days: 100.0 % 13 13 10 3
(360..) days: 100.0 % 18 18 8 10
Branch coverage date bins:
(7,30] days: 50.0 % 2 1 1 1
(30,360] days: 50.7 % 142 72 24 44 50 22 1 1
(360..) days: 57.6 % 276 159 89 4 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
HandleSlotSyncMessageInterrupt CBC 1 100.0 % (4 / 4)
ProcessSlotSyncMessage CBC 1 62.5 % (5 / 8) 25.0 % (2 / 8)
extract_slot_names GNC 1 100.0 % (6 / 6) 83.3 % (5 / 6)
slotsync_failure_callback CBC 1 88.9 % (8 / 9) 50.0 % (2 / 4)
slotsync_reread_config CBC 1 71.9 % (23 / 32) 30.8 % (8 / 26)
ReplSlotSyncWorkerMain GNC 6 96.7 % (58 / 60) 57.7 % (15 / 26)
slotsync_worker_disconnect CBC 6 100.0 % (4 / 4)
slotsync_worker_onexit CBC 6 90.9 % (10 / 11) 50.0 % (2 / 4)
reserve_wal_for_local_slot CBC 8 88.9 % (16 / 18) 50.0 % (6 / 12)
SyncReplicationSlots GNC 9 96.8 % (30 / 31) 77.8 % (14 / 18)
reset_syncing_flag GNC 9 100.0 % (7 / 7)
SlotSyncWorkerCanRestart GNC 12 100.0 % (8 / 8) 66.7 % (4 / 6)
check_and_set_sync_info CBC 15 58.8 % (10 / 17) 21.4 % (3 / 14)
validate_remote_info GNC 15 89.3 % (25 / 28) 50.0 % (12 / 24)
CheckAndGetDbnameFromConninfo CBC 16 100.0 % (5 / 5) 75.0 % (3 / 4)
wait_for_slot_activity CBC 21 100.0 % (8 / 8) 100.0 % (4 / 4)
ValidateSlotSyncParams GNC 23 57.1 % (8 / 14) 40.0 % (8 / 20)
drop_local_obsolete_slots GNC 29 100.0 % (16 / 16) 75.0 % (12 / 16)
get_local_synced_slots GNC 29 100.0 % (10 / 10) 87.5 % (7 / 8)
synchronize_slots GNC 29 100.0 % (9 / 9) 83.3 % (5 / 6)
fetch_remote_slots GNC 31 92.9 % (52 / 56) 60.9 % (28 / 46)
local_sync_slot_required CBC 40 100.0 % (13 / 13) 87.5 % (14 / 16)
synchronize_one_slot GNC 46 77.8 % (42 / 54) 50.0 % (11 / 22)
update_local_synced_slot GNC 46 87.7 % (57 / 65) 58.3 % (35 / 60)
update_slotsync_skip_stats GNC 46 100.0 % (10 / 10) 83.3 % (5 / 6)
IsSyncingReplicationSlots CBC 74 100.0 % (2 / 2)
ShutDownSlotSync CBC 984 100.0 % (22 / 22) 80.0 % (8 / 10)
update_synced_slots_inactive_since GNC 984 100.0 % (15 / 15) 77.8 % (14 / 18)
SlotSyncShmemInit GNC 1209 100.0 % (5 / 5)
SlotSyncShmemRequest GNC 1212 100.0 % (3 / 3)

Generated by: LCOV version 2.0-1