GCC Code Coverage Report


Directory: ./
File: tasks/gaivoronskiy_m_grachem_method/common/include/common.hpp
Date: 2026-01-27 01:59:34
Exec Total Coverage
Lines: 3 3 100.0%
Functions: 0 0 -%
Branches: 3 4 75.0%

Line Branch Exec Source
1 #pragma once
2
3 #include <string>
4 #include <tuple>
5 #include <vector>
6
7 #include "task/include/task.hpp"
8
9 namespace gaivoronskiy_m_grachem_method {
10
11 struct Point {
12 double x;
13 double y;
14
15 218 Point() : x(0.0), y(0.0) {}
16 1736 Point(double x_val, double y_val) : x(x_val), y(y_val) {}
17
18 bool operator==(const Point &other) const {
19
3/4
✓ Branch 0 taken 70 times.
✓ Branch 1 taken 1090 times.
✗ Branch 2 not taken.
✓ Branch 3 taken 70 times.
1160 return x == other.x && y == other.y;
20 }
21 };
22
23 using InType = std::vector<Point>;
24 using OutType = std::vector<Point>;
25 using TestType = std::tuple<std::vector<Point>, std::string>;
26 using BaseTask = ppc::task::Task<InType, OutType>;
27
28 } // namespace gaivoronskiy_m_grachem_method
29