GCC Code Coverage Report


Directory: ./
File: tasks/kutergin_v_multidimensional_integration_rect_method/common/include/common.hpp
Date: 2026-04-02 17:12:27
Exec Total Coverage
Lines: 1 1 100.0%
Functions: 0 0 -%
Branches: 2 4 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 kutergin_v_multidimensional_integration_rect_method {
12
13
2/4
✓ Branch 0 taken 1680 times.
✗ Branch 1 not taken.
✓ Branch 2 taken 140 times.
✗ Branch 3 not taken.
1820 struct IntegrationData {
14 std::vector<std::pair<double, double>> limits; // вектор пар {a, b} - границ каждой из n размерностей
15 std::vector<int> n_steps; // количество шагов для каждой из n размерностей
16 std::function<double(const std::vector<double> &)> func; // сама функция
17 };
18
19 using InType = IntegrationData;
20 using OutType = double;
21 using BaseTask = ppc::task::Task<InType, OutType>;
22 using TestType = std::tuple<InType, OutType, std::string>;
23
24 } // namespace kutergin_v_multidimensional_integration_rect_method
25