KleidiAI Coverage Report


Directory: ./
Coverage: low: ≥ 0% medium: ≥ 75.0% high: ≥ 90.0%
Coverage Exec / Excl / Total
Lines: 83.3% 5 / 0 / 6
Functions: 50.0% 1 / 0 / 2
Branches: 22.2% 2 / 0 / 9

test/nextgen/operators/matmul/matmul_bias_mode.cpp
Line Branch Exec Source
1 //
2 // SPDX-FileCopyrightText: Copyright 2025 Arm Limited and/or its affiliates <open-source-office@arm.com>
3 //
4 // SPDX-License-Identifier: Apache-2.0
5 //
6
7 #include "test/nextgen/operators/matmul/matmul_bias_mode.hpp"
8
9 #include <string>
10
11 #include "test/common/assert.hpp"
12
13 namespace kai::test {
14
15 2400 std::string matmul_bias_mode_name(MatMulBiasMode bias_mode) {
16
2/3
✓ Branch 0 taken 1740 times.
✓ Branch 1 taken 660 times.
✗ Branch 2 not taken.
2400 switch (bias_mode) {
17 case MatMulBiasMode::NO_BIAS:
18
0/2
✗ Branch 0 not taken.
✗ Branch 1 not taken.
660 return "no";
19
20 case MatMulBiasMode::PER_N:
21
0/2
✗ Branch 0 not taken.
✗ Branch 1 not taken.
1740 return "col";
22
23 default:
24 KAI_TEST_ERROR("Not supported.");
25 }
26 2400 }
27
28 } // namespace kai::test
29