Repository navigation
Commit 8cb56a6
cmocka: Remove dct test
The DCT (Discrete Cosine Transform) matrix generation code is already
fully covered by the ztest port at test/ztest/unit/math/dct/. Remove
the now-redundant CMocka test and its CMakeLists.txt stanza, along
with the whole dct/ subdirectory (it was the last remaining test
there).
Move the reference DCT matrices and their Octave/MATLAB generator
scripts reused by the ztest port (ref_dct_matrix_16_test{1,2}.h,
mfcc_get_dct_matrix.m, ref_dct.m) with git mv into
test/ztest/unit/math/dct/ to preserve file history, and drop the
now-unneeded CMocka include path from the ztest CMakeLists.txt.
CMock stats for src/math/dct.c:
- lines: 100% (29/29)
- branches: 65% (13/20)
Ztest stats for src/math/dct.c:
- lines: 86% (25/29)
- branches: 65% (13/20)
Branch coverage is identical between the two builds, including the
same missing branches, confirming equivalent test behaviour. The line
percentage difference is a gcc vs clang line-hit accounting artifact
for the same source file, not a regression.
Assisted-by: Copilot:claude-sonnet-5
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: Tomasz Leman <tomasz.m.leman@intel.com>1 parent 5cee6b4 commit 8cb56a6
9 files changed
Lines changed: 2 additions & 126 deletions
File tree
- test
- cmocka/src/math
- dct
- ztest/unit/math/dct
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | 21 | | |
25 | 22 | | |
26 | 23 | | |
| |||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
24 | | - | |
| 22 | + | |
| 23 | + | |
25 | 24 | | |
26 | 25 | | |
27 | 26 | | |
| |||
0 commit comments