Repository navigation
Commit 06b02e2
cmocka: Remove window test
The window generation code (rectangular, Blackman, Hamming, Povey) is
already fully covered by the ztest port at
test/ztest/unit/math/window/. Remove the now-redundant CMocka test
and its CMakeLists.txt stanza, along with the whole window/
subdirectory (it was the last remaining test there). This also
removes the last non-dft3 subdirectory from test/cmocka/src/math/,
leaving only fft/ (dft3, deferred to a later phase).
Move the reference windows and their Octave/MATLAB generator scripts
reused by the ztest port (ref_window_{rectangular,blackman,hamming,
povey}.h, mfcc_blackman.m, mfcc_povey.m, ref_window.m) with git mv
into test/ztest/unit/math/window/ to preserve file history, and drop
the now-unneeded CMocka include path from the ztest CMakeLists.txt.
CMock stats for src/math/window.c:
- lines: 48% (54/111)
- branches: 34% (11/32)
Ztest stats for src/math/window.c:
- lines: 46% (38/81)
- branches: 44% (8/18)
Every branch missing on the ztest side is also missing on the CMock
side (same untested logic paths), confirming no regression. The
differing line/branch denominators for the identical source file are
a gcc vs clang instrumentation/optimization-level artifact, not a
behavioural difference.
Assisted-by: Copilot:claude-sonnet-5
Signed-off-by: Tomasz Leman <tomasz.m.leman@intel.com>1 parent 310f615 commit 06b02e2
12 files changed
Lines changed: 2 additions & 154 deletions
File tree
- test
- cmocka/src/math
- window
- ztest/unit/math/window
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | 15 | | |
19 | 16 | | |
20 | 17 | | |
| |||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
0 commit comments