GCC Code Coverage Report


Directory: ./
File: tasks/shekhirev_v_cg_method/common/include/common.hpp
Date: 2026-01-10 02:40:41
Exec Total Coverage
Lines: 6 6 100.0%
Functions: 2 2 100.0%
Branches: 4 8 50.0%

Line Branch Exec Source
1 #pragma once
2
3 #include <iostream>
4 #include <string>
5 #include <tuple>
6 #include <vector>
7
8 #include "task/include/task.hpp"
9
10 namespace shekhirev_v_cg_method {
11
12
2/4
✓ Branch 1 taken 30 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 30 times.
✗ Branch 5 not taken.
60 struct InputData {
13 std::vector<double> A;
14 std::vector<double> b;
15 int n;
16
17
1/2
✓ Branch 1 taken 30 times.
✗ Branch 2 not taken.
60 InputData() : n(0) {}
18
1/2
✓ Branch 2 taken 84 times.
✗ Branch 3 not taken.
84 InputData(const std::vector<double> &matrix, const std::vector<double> &rhs, int size) : A(matrix), b(rhs), n(size) {}
19 };
20
21 168 inline std::ostream &operator<<(std::ostream &os, const InputData &data) {
22 168 os << "n=" << data.n;
23 168 return os;
24 }
25
26 using InType = InputData;
27 using OutType = std::vector<double>;
28 using TestType = std::tuple<InputData, std::vector<double>, std::string>;
29 using BaseTask = ppc::task::Task<InType, OutType>;
30
31 } // namespace shekhirev_v_cg_method
32