GCC Code Coverage Report


Directory: ./
File: tasks/luzan_e_double_sparse_matrix_mult_seq/seq/src/ops_seq.cpp
Date: 2026-04-02 17:12:27
Exec Total Coverage
Lines: 11 11 100.0%
Functions: 5 5 100.0%
Branches: 6 12 50.0%

Line Branch Exec Source
1 #include "luzan_e_double_sparse_matrix_mult_seq/seq/include/ops_seq.hpp"
2
3 #include "luzan_e_double_sparse_matrix_mult_seq/common/include/common.hpp"
4 // #include "util/include/util.hpp"
5
6 namespace luzan_e_double_sparse_matrix_mult_seq {
7
8
1/2
✓ Branch 2 taken 48 times.
✗ Branch 3 not taken.
48 LuzanEDoubleSparseMatrixMultSeq::LuzanEDoubleSparseMatrixMultSeq(const InType &in) {
9 SetTypeOfTask(GetStaticTypeOfTask());
10 GetInput() = in;
11 // GetOutput() = 0;
12 48 }
13
14
1/2
✓ Branch 0 taken 48 times.
✗ Branch 1 not taken.
48 bool LuzanEDoubleSparseMatrixMultSeq::ValidationImpl() {
15 const auto &a = std::get<0>(GetInput());
16 const auto &b = std::get<1>(GetInput());
17
4/8
✓ Branch 0 taken 48 times.
✗ Branch 1 not taken.
✗ Branch 2 not taken.
✓ Branch 3 taken 48 times.
✗ Branch 4 not taken.
✓ Branch 5 taken 48 times.
✗ Branch 6 not taken.
✓ Branch 7 taken 48 times.
48 return a.GetCols() == b.GetRows() && a.GetCols() != 0 && a.GetRows() != 0 && b.GetCols() != 0;
18 }
19
20 48 bool LuzanEDoubleSparseMatrixMultSeq::PreProcessingImpl() {
21 48 return true;
22 }
23
24 48 bool LuzanEDoubleSparseMatrixMultSeq::RunImpl() {
25 const auto &a = std::get<0>(GetInput());
26 const auto &b = std::get<1>(GetInput());
27
28 48 GetOutput() = a * b;
29 48 return true;
30 }
31
32 48 bool LuzanEDoubleSparseMatrixMultSeq::PostProcessingImpl() {
33 48 return true;
34 }
35
36 } // namespace luzan_e_double_sparse_matrix_mult_seq
37