Skip to content

Commit a45674e

Browse files
committed
cmocka: Remove find minimum int16 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 c5b382e commit a45674e

3 files changed

Lines changed: 2 additions & 54 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(find_min_int16
4-
find_min_int16.c
5-
${PROJECT_SOURCE_DIR}/src/math/numbers.c
6-
)
7-
83
cmocka_test(find_max_abs_int32
94
find_max_abs_int32.c
105
${PROJECT_SOURCE_DIR}/src/math/numbers.c

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

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

test/ztest/unit/math/basic/arithmetic/test_find_min_int16_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 tests from test/cmocka/src/math/numbers/find_min_int16.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)