GCC Code Coverage Report


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

Line Branch Exec Source
1 #pragma once
2
3 #include <tuple>
4 #include <utility>
5 #include <vector>
6
7 #include "task/include/task.hpp"
8
9 namespace eremin_v_integrals_monte_carlo {
10
11 using FunctionType = double (*)(const std::vector<double> &);
12
13
3/6
✓ Branch 1 taken 48 times.
✗ Branch 2 not taken.
✗ Branch 3 not taken.
✓ Branch 4 taken 48 times.
✓ Branch 5 taken 48 times.
✗ Branch 6 not taken.
240 struct MonteCarloInput {
14 std::vector<std::pair<double, double>> bounds;
15 int samples = 0;
16 FunctionType func = nullptr;
17 };
18
19 using InType = MonteCarloInput;
20 using OutType = double;
21 using TestType =
22 std::tuple<int, std::vector<std::pair<double, double>>, int, double (*)(const std::vector<double> &), double>;
23 using BaseTask = ppc::task::Task<InType, OutType>;
24
25 } // namespace eremin_v_integrals_monte_carlo
26