From 6213cbf1cff4a82b15112cbacd69d4b1d7d113a2 Mon Sep 17 00:00:00 2001 From: Daniele Lacamera Date: Wed, 29 Jul 2026 09:43:32 +0200 Subject: [PATCH] tests: reword "statics" in MC/DC comments (codespell) codespell reads "statics" as a misspelling of "statistics" and fails the Codespell CI lane. Reword the whitebox doc comments/notes to "static helpers" (falcon/frodokem/rsa fault white-boxes). Comment/string only. --- tests/unit-mcdc/test_falcon_whitebox.c | 2 +- tests/unit-mcdc/test_frodokem_fault_common.h | 2 +- tests/unit-mcdc/test_frodokem_fault_whitebox.c | 2 +- tests/unit-mcdc/test_rsa_fault_whitebox.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/unit-mcdc/test_falcon_whitebox.c b/tests/unit-mcdc/test_falcon_whitebox.c index b40c28dda1..839d4551ee 100644 --- a/tests/unit-mcdc/test_falcon_whitebox.c +++ b/tests/unit-mcdc/test_falcon_whitebox.c @@ -28,7 +28,7 @@ * with well-formed, self-consistent operands, so the argument-check and * bound-check decisions inside the file-static helpers cannot have both halves of * each independence pair demonstrated from tests/api. This TU #includes falcon.c - * so the statics are in scope, and drives each targeted decision with both halves + * so the static helpers are in scope, and drives each targeted decision with both halves * of every independence pair in a single binary (MC/DC is computed per binary). * * Two complementary techniques are used: diff --git a/tests/unit-mcdc/test_frodokem_fault_common.h b/tests/unit-mcdc/test_frodokem_fault_common.h index a5822340e5..b5cb778f5d 100644 --- a/tests/unit-mcdc/test_frodokem_fault_common.h +++ b/tests/unit-mcdc/test_frodokem_fault_common.h @@ -25,7 +25,7 @@ * wolfcrypt/src/wc_frodokem.c and wolfcrypt/src/wc_frodokem_mat.c are compiled * as SEPARATE translation units in the library, so each involved file gets its * own white-box driver TU that #includes just that one .c (so llvm-cov - * instruments its file-statics), then #includes THIS header for the common + * instruments its file-static helpers), then #includes THIS header for the common * main()/sweep. The harness links each driver against libwolfssl.a with only * the one instrumented object trimmed, so the other FrodoKEM object is still * provided by the archive -- make/encap/decap therefore run end to end in both diff --git a/tests/unit-mcdc/test_frodokem_fault_whitebox.c b/tests/unit-mcdc/test_frodokem_fault_whitebox.c index b7df47d090..b1a62e02cc 100644 --- a/tests/unit-mcdc/test_frodokem_fault_whitebox.c +++ b/tests/unit-mcdc/test_frodokem_fault_whitebox.c @@ -23,7 +23,7 @@ * MC/DC fault-injection white-box for wolfcrypt/src/wc_frodokem.c. * * #includes wc_frodokem.c directly so llvm-cov instruments this file's copy - * (reaching its file-statics), then #includes the shared driver body which + * (reaching its file-static helpers), then #includes the shared driver body which * installs the heap-fault injector and sweeps the fail-index across * make/encap/decap for every compiled parameter set -- driving the FALSE * (ret != 0) halves of wc_frodokem.c's allocation success chains. See diff --git a/tests/unit-mcdc/test_rsa_fault_whitebox.c b/tests/unit-mcdc/test_rsa_fault_whitebox.c index dd10bf793e..f3d640230e 100644 --- a/tests/unit-mcdc/test_rsa_fault_whitebox.c +++ b/tests/unit-mcdc/test_rsa_fault_whitebox.c @@ -452,7 +452,7 @@ int main(int argc, char** argv) if (WANT("makekey")) wb_makersakey_alloc_guard(&rng); - WB_NOTE("fault-index sweeps over public/private/check/der + statics done"); + WB_NOTE("fault-index sweeps over public/private/check/der + helpers done"); } mcdc_fa_disarm();