GCC Code Coverage Report


Directory: ./
File: tasks/shvetsova_k_mult_matrix_complex_col/common/include/common.hpp
Date: 2026-04-02 17:12:27
Exec Total Coverage
Lines: 3 3 100.0%
Functions: 1 1 100.0%
Branches: 3 6 50.0%

Line Branch Exec Source
1 #pragma once
2
3 #include <complex>
4 #include <string>
5 #include <tuple>
6 #include <vector>
7
8 #include "task/include/task.hpp"
9
10 namespace shvetsova_k_mult_matrix_complex_col {
11
12 struct MatrixCCS {
13 int rows = 0;
14 int cols = 0;
15 std::vector<int> col_ptr;
16 std::vector<int> row_ind;
17 std::vector<std::complex<double>> values;
18
19 60 bool operator==(const MatrixCCS &matrix) const {
20
3/6
✓ Branch 0 taken 60 times.
✗ Branch 1 not taken.
✓ Branch 2 taken 60 times.
✗ Branch 3 not taken.
✓ Branch 4 taken 60 times.
✗ Branch 5 not taken.
60 return rows == matrix.rows && cols == matrix.cols && col_ptr == matrix.col_ptr && row_ind == matrix.row_ind &&
21 60 values == matrix.values;
22 }
23 };
24 using InType = std::tuple<MatrixCCS, MatrixCCS>;
25 using OutType = MatrixCCS;
26 using TestType = std::tuple<int, std::string>;
27 using BaseTask = ppc::task::Task<InType, OutType>;
28
29 } // namespace shvetsova_k_mult_matrix_complex_col
30