LCOV - differential code coverage report
Current view: top level - src/backend/replication/logical - snapbuild.c (source / functions) Coverage Total Hit UNC UBC GBC GNC CBC DUB DCB
Current: 380a8b2ea024c33a35e7abc8628e7c4f52f9f9f9 vs db5ed03217b9c238703df8b4b286115d6e940488 Lines: 86.1 % 589 507 82 2 15 490 2 14
Current Date: 2026-05-29 21:51:00 -0400 Functions: 100.0 % 32 32 9 23
Baseline: lcov-20260530-034037-baseline Branches: 57.9 % 482 279 5 198 3 29 247 6 22
Baseline Date: 2026-05-29 14:39:03 -0700 Line coverage date bins:
Legend: Lines:     hit not hit
Branches: + taken - not taken # not executed
(1,7] days: 100.0 % 2 2 2
(30,360] days: 100.0 % 17 17 15 2
(360..) days: 85.6 % 570 488 82 2 486
Function coverage date bins:
(1,7] days: 100.0 % 1 1 1
(360..) days: 100.0 % 31 31 8 23
Branch coverage date bins:
(30,360] days: 85.3 % 34 29 5 29
(360..) days: 55.8 % 448 250 198 3 247

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
SnapBuildExportSnapshot CBC 1 85.7 % (12 / 14) 30.0 % (3 / 10)
SnapBuildGetOrBuildSnapshot CBC 8 100.0 % (6 / 6) 75.0 % (3 / 4)
SnapBuildSetTwoPhaseAt CBC 8 100.0 % (3 / 3)
SnapBuildSnapshotExists CBC 12 85.7 % (6 / 7) 50.0 % (3 / 6)
SnapBuildWaitSnapshot CBC 18 81.8 % (9 / 11) 50.0 % (5 / 10)
SnapBuildRestore GNC 19 71.8 % (28 / 39) 57.7 % (15 / 26)
SnapBuildRestoreSnapshot CBC 21 85.7 % (30 / 35) 42.9 % (12 / 28)
SnapBuildRestoreContents CBC 29 50.0 % (6 / 12) 12.5 % (1 / 8)
SnapBuildGetTwoPhaseAt CBC 35 100.0 % (2 / 2)
SnapBuildSerializationPoint CBC 79 80.0 % (4 / 5) 50.0 % (1 / 2)
SnapBuildInitialSnapshot GNC 219 66.7 % (22 / 33) 27.5 % (11 / 40)
SnapBuildPurgeOlderTxn CBC 504 95.8 % (23 / 24) 77.3 % (17 / 22)
SnapBuildSerialize GNC 561 84.1 % (74 / 88) 50.0 % (28 / 56)
FreeSnapshotBuilder CBC 944 100.0 % (7 / 7) 100.0 % (2 / 2)
SnapBuildFindSnapshot GNC 1167 93.0 % (40 / 43) 73.1 % (38 / 52)
AllocateSnapshotBuilder GNC 1192 100.0 % (21 / 21)
SnapBuildDistributeSnapshotAndInval GNC 1446 100.0 % (18 / 18) 83.3 % (15 / 18)
SnapBuildAddCommittedTxn GNC 1455 100.0 % (8 / 8) 66.7 % (4 / 6)
SnapBuildFreeSnapshot CBC 1632 83.3 % (10 / 12) 38.9 % (7 / 18)
SnapBuildProcessRunningXacts GNC 1649 100.0 % (21 / 21) 90.0 % (18 / 20)
CheckPointSnapBuild GNC 1950 76.9 % (20 / 26) 64.3 % (18 / 28)
SnapBuildBuildSnapshot CBC 2116 100.0 % (28 / 28) 50.0 % (3 / 6)
SnapBuildCommitTxn CBC 3644 81.7 % (49 / 60) 60.3 % (41 / 68)
SnapBuildXidHasCatalogChanges CBC 4868 100.0 % (7 / 7) 87.5 % (7 / 8)
SnapBuildClearExportedSnapshot CBC 5831 87.5 % (7 / 8) 50.0 % (3 / 6)
SnapBuildSnapDecRefcount CBC 6865 92.3 % (12 / 13) 50.0 % (9 / 18)
SnapBuildSnapIncRefcount CBC 7150 100.0 % (3 / 3)
SnapBuildProcessNewCid CBC 27192 85.7 % (12 / 14) 70.0 % (7 / 10)
SnapBuildResetExportedSnapshotState CBC 35386 100.0 % (4 / 4)
SnapBuildXactNeedsSkip CBC 375296 100.0 % (2 / 2)
SnapBuildProcessChange CBC 1398908 84.6 % (11 / 13) 80.0 % (8 / 10)
SnapBuildCurrentState CBC 1968355 100.0 % (2 / 2)

Generated by: LCOV version 2.5.0-beta