LCOV - differential code coverage report
Current view: top level - src/backend/replication - syncrep.c (source / functions) Coverage Total Hit UNC UBC GNC CBC DUB DCB
Current: 7a15cff1f11193467898da1c1fabf06fd2caee04 vs 84a3778c79c2d28b4dc281d03ef2ab019b16483b Lines: 77.5 % 316 245 3 68 8 237 3 9
Current Date: 2025-12-15 18:36:29 -0500 Functions: 84.2 % 19 16 1 2 4 12
Baseline: lcov-20251216-010103-baseline Branches: 64.1 % 234 150 12 72 6 144
Baseline Date: 2025-12-15 13:30:48 -0800 Line coverage date bins:
Legend: Lines:     hit not hit
Branches: + taken - not taken # not executed
(1,7] days: 25.0 % 4 1 3 1
(30,360] days: 92.9 % 28 26 2 7 19
(360..) days: 76.8 % 284 218 66 218
Function coverage date bins:
(360..) days: 84.2 % 19 16 1 2 4 12
Branch coverage date bins:
(30,360] days: 57.1 % 42 24 12 6 6 18
(360..) days: 65.6 % 192 126 66 126

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
SyncRepCancelWait UBC 0 0.0 % (0 / 7) 0.0 % (0 / 2)
SyncRepGetNthLatestSyncRecPtr UNC 0 0.0 % (0 / 19) 0.0 % (0 / 6)
cmp_lsn UBC 0 0.0 % (0 / 4)
standby_priority_comparator CBC 20 100.0 % (6 / 6) 100.0 % (2 / 2)
SyncRepQueueInsert CBC 38 55.6 % (5 / 9) 40.0 % (4 / 10)
SyncRepGetOldestSyncRecPtr GNC 121 100.0 % (12 / 12) 35.7 % (5 / 14)
SyncRepGetSyncRecPtr CBC 122 86.4 % (19 / 22) 75.0 % (9 / 12)
SyncRepWakeQueue CBC 142 100.0 % (16 / 16) 62.5 % (10 / 16)
SyncRepQueueIsOrderedByLSN CBC 180 88.9 % (8 / 9) 60.0 % (6 / 10)
SyncRepUpdateSyncStandbysDefined CBC 580 100.0 % (16 / 16) 83.3 % (15 / 18)
SyncRepGetStandbyPriority CBC 687 100.0 % (16 / 16) 83.3 % (15 / 18)
SyncRepInitConfig CBC 687 100.0 % (8 / 8) 66.7 % (4 / 6)
SyncRepGetCandidateStandbys GNC 810 93.8 % (30 / 32) 85.0 % (17 / 20)
assign_synchronous_standby_names CBC 1184 100.0 % (3 / 3)
check_synchronous_standby_names CBC 1194 64.0 % (16 / 25) 50.0 % (7 / 14)
assign_synchronous_commit CBC 1833 80.0 % (12 / 15) 75.0 % (3 / 4)
SyncRepCleanupAtProcExit CBC 15451 42.9 % (3 / 7) 25.0 % (1 / 4)
SyncRepReleaseWaiters GNC 101401 97.0 % (32 / 33) 76.7 % (23 / 30)
SyncRepWaitForLSN GNC 125486 75.4 % (43 / 57) 60.4 % (29 / 48)

Generated by: LCOV version 2.4-beta