Skip to content

Commit 5db9a30

Browse files
author
coverage-leader
committed
test(coverage): annotate G8 thresholds with Stage-6 actual values
Adds inline 'actual: line=X% branch=Y%' comments next to every entry in the BEGIN block of tests/unit/coverage_threshold.sh, so future readers can see at a glance how much headroom each threshold has and decide whether to ratchet it up after future work. ff_dpdk_if.c entry also notes the merged unit+integration value (line=30.5%) reachable via tests/run_full_coverage.sh. 10/10 G8 PASS unchanged.
1 parent b7ca845 commit 5db9a30

1 file changed

Lines changed: 23 additions & 14 deletions

File tree

tests/unit/coverage_threshold.sh

Lines changed: 23 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -56,20 +56,29 @@ function rate(hit, total) {
5656
5757
BEGIN {
5858
# threshold tables, keyed by file basename
59-
# P0 (spec 06 §6.1, post-Stage-6 actual - 5pp)
60-
tline["ff_ini_parser.c"] = 92; tbr["ff_ini_parser.c"] = 78
61-
tline["ff_log.c"] = 100; tbr["ff_log.c"] = 100
62-
# P1 (spec 06 §6.1, post-Stage-6 actual - 5pp)
63-
tline["ff_host_interface.c"]= 95; tbr["ff_host_interface.c"]= 87
64-
tline["ff_epoll.c"] = 95; tbr["ff_epoll.c"] = 84
65-
tline["ff_config.c"] = 70; tbr["ff_config.c"] = 65
66-
# P2 (Stage-6 actual - 5pp)
67-
tline["ff_thread.c"] = 95; tbr["ff_thread.c"] = 95
68-
tline["ff_init.c"] = 95; tbr["ff_init.c"] = 95
69-
tline["ff_dpdk_pcap.c"] = 95; tbr["ff_dpdk_pcap.c"] = 84
70-
# P3 (Stage-5 subset only — most of the file is out-of-scope by design)
71-
tline["ff_dpdk_if.c"] = 4; tbr["ff_dpdk_if.c"] = 2
72-
tline["ff_dpdk_kni.c"] = 40; tbr["ff_dpdk_kni.c"] = 35
59+
# Format: line_threshold; branch_threshold (post-Stage-6 actual - 5pp)
60+
# "actual" columns reflect the 2026-06-10 measured values after the
61+
# full Stage-6 coverage-boost project (Phases 1-9). They are the
62+
# informational comments that drive the chosen thresholds; if a future
63+
# change bumps any actual upward, raise the threshold accordingly.
64+
#
65+
# P0 (spec 06 §6.1)
66+
tline["ff_ini_parser.c"] = 92; tbr["ff_ini_parser.c"] = 78 # actual: line=97.3% branch=83.8%
67+
tline["ff_log.c"] = 100; tbr["ff_log.c"] = 100 # actual: line=100% branch=100% (capped)
68+
# P1 (spec 06 §6.1)
69+
tline["ff_host_interface.c"]= 95; tbr["ff_host_interface.c"]= 87 # actual: line=100% branch=92.5%
70+
tline["ff_epoll.c"] = 95; tbr["ff_epoll.c"] = 84 # actual: line=100% branch=89.1%
71+
tline["ff_config.c"] = 70; tbr["ff_config.c"] = 65 # actual: line=79.2% branch=75.2% (post FU-S2-2-CFG-UNLOAD)
72+
# P2
73+
tline["ff_thread.c"] = 95; tbr["ff_thread.c"] = 95 # actual: line=100% branch=100%
74+
tline["ff_init.c"] = 95; tbr["ff_init.c"] = 95 # actual: line=100% branch=100%
75+
tline["ff_dpdk_pcap.c"] = 95; tbr["ff_dpdk_pcap.c"] = 84 # actual: line=100% branch=88.9%
76+
# P3 (subset by design — most of these files need a real DPDK ethdev runtime)
77+
# Integration suite at tests/integration/ pushes ff_dpdk_if.c to ~30.5%
78+
# line via real EAL --vdev=net_null0; the unit number below is the
79+
# sub-set reachable in pure-mock unit scope.
80+
tline["ff_dpdk_if.c"] = 4; tbr["ff_dpdk_if.c"] = 2 # actual (unit-only): line=5.7% branch=3.6% (merged: line=30.5% branch=22.1%)
81+
tline["ff_dpdk_kni.c"] = 40; tbr["ff_dpdk_kni.c"] = 35 # actual: line=47.2% branch=40.9%
7382
7483
pass = 0; fail = 0; total_files = 0
7584
}

0 commit comments

Comments
 (0)