Skip to content

Commit 48ee8cb

Browse files
committed
cmocka: Remove ceiling division tests
This patch removes tests that have been successfully converted to the new framework (from cmock to ztest). Code coverage testing did not reveal any regression. CMock stats for number.c - lines: 80.4 % (45/56) - funcs: 83.3 % (5/6) - branches: 78.1 % (25/32) Ztest stats for number.c - lines: 83.6 % (46/55) - funcs: 83.3 % (5/6) - branches: 78.9 % (30/38) Additionally, information about the source of the original code and its author has been added to the new version of tests. Signed-off-by: Tomasz Leman <tomasz.m.leman@intel.com>
1 parent 7d0621e commit 48ee8cb

3 files changed

Lines changed: 2 additions & 65 deletions

File tree

test/cmocka/src/math/numbers/CMakeLists.txt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,6 @@ cmocka_test(gcd
55
${PROJECT_SOURCE_DIR}/src/math/numbers.c
66
)
77

8-
cmocka_test(ceil_divide
9-
ceil_divide.c
10-
${PROJECT_SOURCE_DIR}/src/math/numbers.c
11-
)
12-
target_link_libraries(ceil_divide PRIVATE -lm)
13-
148
cmocka_test(find_equal_int16
159
find_equal_int16.c
1610
${PROJECT_SOURCE_DIR}/src/math/numbers.c

test/cmocka/src/math/numbers/ceil_divide.c

Lines changed: 0 additions & 59 deletions
This file was deleted.

test/ztest/unit/math/basic/arithmetic/test_ceil_divide_ztest.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
// generative artificial intelligence solutions.
77
//
88
// Converted from CMock to Ztest
9+
// Original file: sof/test/cmocka/src/math/numbers/ceil_divide.c
10+
// Author: Slawomir Blauciak <slawomir.blauciak@linux.intel.com>
911

1012
#include <zephyr/ztest.h>
1113
#include <sof/math/numbers.h>

0 commit comments

Comments
 (0)