GCC Code Coverage Report


Directory: ./
File: tasks/shkrebko_m_calc_of_integral_rect/common/include/common.hpp
Date: 2026-04-02 17:12:27
Exec Total Coverage
Lines: 1 1 100.0%
Functions: 0 0 -%
Branches: 7 14 50.0%

Line Branch Exec Source
1 #pragma once
2
3 #include <functional>
4 #include <string>
5 #include <tuple>
6 #include <utility>
7 #include <vector>
8
9 #include "task/include/task.hpp"
10
11 namespace shkrebko_m_calc_of_integral_rect {
12
13
7/14
✓ Branch 0 taken 2240 times.
✗ Branch 1 not taken.
✓ Branch 2 taken 28 times.
✗ Branch 3 not taken.
✓ Branch 4 taken 28 times.
✗ Branch 5 not taken.
✓ Branch 6 taken 28 times.
✗ Branch 7 not taken.
✓ Branch 8 taken 56 times.
✗ Branch 9 not taken.
✓ Branch 10 taken 56 times.
✗ Branch 11 not taken.
✓ Branch 12 taken 84 times.
✗ Branch 13 not taken.
2520 struct IntegralInput {
14 std::vector<std::pair<double, double>> limits;
15 std::vector<int> n_steps;
16 std::function<double(const std::vector<double> &)> func;
17 };
18 using InType = IntegralInput;
19 using OutType = double;
20 using TestType = std::tuple<InType, OutType, std::string>;
21 using BaseTask = ppc::task::Task<InType, OutType>;
22
23 } // namespace shkrebko_m_calc_of_integral_rect
24