GCC Code Coverage Report


Directory: ./
File: tasks/vlasova_a_simpson_method_seq/common/include/common.hpp
Date: 2026-04-02 17:12:27
Exec Total Coverage
Lines: 2 2 100.0%
Functions: 1 1 100.0%
Branches: 4 8 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 vlasova_a_simpson_method_seq {
12
13 struct SimpsonTask {
14 std::function<double(const std::vector<double> &)> func;
15 std::vector<double> a;
16 std::vector<double> b;
17 std::vector<int> n;
18
19 SimpsonTask() = default;
20 64 SimpsonTask(std::function<double(const std::vector<double> &)> f, const std::vector<double> &lower,
21 const std::vector<double> &upper, const std::vector<int> &steps)
22
4/8
✓ Branch 0 taken 64 times.
✗ Branch 1 not taken.
✓ Branch 3 taken 64 times.
✗ Branch 4 not taken.
✓ Branch 6 taken 64 times.
✗ Branch 7 not taken.
✓ Branch 9 taken 64 times.
✗ Branch 10 not taken.
128 : func(std::move(f)), a(lower), b(upper), n(steps) {}
23 };
24
25 using InType = SimpsonTask;
26 using OutType = double;
27 using TestType = std::tuple<std::vector<double>, std::vector<double>, std::vector<int>, double, std::string>;
28 using BaseTask = ppc::task::Task<InType, OutType>;
29
30 } // namespace vlasova_a_simpson_method_seq
31