GCC Code Coverage Report


Directory: ./
File: tasks/barkalova_m_int_met_trapez/common/include/common.hpp
Date: 2026-01-09 01:27:18
Exec Total Coverage
Lines: 2 2 100.0%
Functions: 0 0 -%
Branches: 2 4 50.0%

Line Branch Exec Source
1 #pragma once
2
3 #include <string>
4 #include <tuple>
5 #include <utility>
6 #include <vector>
7
8 #include "task/include/task.hpp"
9
10 namespace barkalova_m_int_met_trapez {
11
12
2/4
✓ Branch 1 taken 160 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 160 times.
✗ Branch 5 not taken.
160 struct Integral {
13 static double Function(double x, double y) // подынтегральная ф
14 {
15 2356648 return (x * x) + (y * y);
16 }
17
18 std::vector<std::pair<double, double>> limits; // пределы интегрирования
19 std::vector<int> n_i; // число узлов интегрирования
20 };
21 using InType = Integral;
22 using OutType = double;
23 using TestType = std::tuple<int, std::string>;
24 using BaseTask = ppc::task::Task<InType, OutType>;
25
26 } // namespace barkalova_m_int_met_trapez
27