Skip to content

Commit 98c9361

Browse files
committed
cmocka: Remove greatest common divisor 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 48ee8cb commit 98c9361

3 files changed

Lines changed: 3 additions & 121 deletions

File tree

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
# SPDX-License-Identifier: BSD-3-Clause
22

3-
cmocka_test(gcd
4-
gcd.c
5-
${PROJECT_SOURCE_DIR}/src/math/numbers.c
6-
)
7-
83
cmocka_test(find_equal_int16
94
find_equal_int16.c
105
${PROJECT_SOURCE_DIR}/src/math/numbers.c

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

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

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
// generative artificial intelligence solutions.
77
//
88
// Converted from CMock to Ztest
9+
// Original tests from test/cmocka/src/math/numbers/gcd.c:
10+
// Author: Marcin Maka <marcin.maka@linux.intel.com>
11+
// Janusz Jankowski <janusz.jankowski@linux.intel.com>
912

1013
#include <zephyr/ztest.h>
1114
#include <sof/math/numbers.h>

0 commit comments

Comments
 (0)