GCC Code Coverage Report


Directory: ./
File: tasks/shakirova_e_elem_matrix_sum/seq/src/ops_seq.cpp
Date: 2026-01-27 01:59:34
Exec Total Coverage
Lines: 16 16 100.0%
Functions: 5 5 100.0%
Branches: 6 8 75.0%

Line Branch Exec Source
1 #include "shakirova_e_elem_matrix_sum/seq/include/ops_seq.hpp"
2
3 #include <cstddef>
4
5 #include "shakirova_e_elem_matrix_sum/common/include/common.hpp"
6 #include "shakirova_e_elem_matrix_sum/common/include/matrix.hpp"
7
8 namespace shakirova_e_elem_matrix_sum {
9
10
1/2
✓ Branch 1 taken 72 times.
✗ Branch 2 not taken.
72 ShakirovaEElemMatrixSumSEQ::ShakirovaEElemMatrixSumSEQ(const InType &in) {
11 SetTypeOfTask(GetStaticTypeOfTask());
12 GetInput() = in;
13 72 GetOutput() = 0;
14 72 }
15
16
1/2
✓ Branch 0 taken 72 times.
✗ Branch 1 not taken.
72 bool ShakirovaEElemMatrixSumSEQ::ValidationImpl() {
17 72 return GetInput().IsValid();
18 }
19
20 72 bool ShakirovaEElemMatrixSumSEQ::PreProcessingImpl() {
21 72 GetOutput() = 0;
22 72 return true;
23 }
24
25 72 bool ShakirovaEElemMatrixSumSEQ::RunImpl() {
26 72 GetOutput() = 0;
27
28
2/2
✓ Branch 0 taken 744 times.
✓ Branch 1 taken 72 times.
816 for (size_t i = 0; i < GetInput().rows; i++) {
29
2/2
✓ Branch 0 taken 19928 times.
✓ Branch 1 taken 744 times.
20672 for (size_t j = 0; j < GetInput().cols; j++) {
30 19928 GetOutput() += GetInput().At(i, j);
31 }
32 }
33
34 72 return true;
35 }
36
37 72 bool ShakirovaEElemMatrixSumSEQ::PostProcessingImpl() {
38 72 return true;
39 }
40
41 } // namespace shakirova_e_elem_matrix_sum
42