GCC Code Coverage Report


Directory: ./
File: tasks/egorova_l_binary_convex_hull/common/include/common.hpp
Date: 2026-06-04 20:25:32
Exec Total Coverage
Lines: 2 2 100.0%
Functions: 0 0 -%
Branches: 8 18 44.4%

Line Branch Exec Source
1 #pragma once
2
3 #include <cstdint>
4 #include <tuple>
5 #include <vector>
6
7 #include "task/include/task.hpp"
8
9 namespace egorova_l_binary_convex_hull {
10
11 struct Point {
12 int x, y;
13 bool operator<(const Point &other) const {
14 return std::tie(x, y) < std::tie(other.x, other.y);
15 }
16 bool operator==(const Point &other) const {
17
3/8
✓ Branch 0 taken 86 times.
✓ Branch 1 taken 40 times.
✓ Branch 2 taken 86 times.
✗ Branch 3 not taken.
✗ Branch 4 not taken.
✗ Branch 5 not taken.
✗ Branch 6 not taken.
✗ Branch 7 not taken.
126 return x == other.x && y == other.y;
18 }
19 };
20
21
5/10
✓ Branch 1 taken 2448 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 64 times.
✗ Branch 5 not taken.
✓ Branch 6 taken 208 times.
✗ Branch 7 not taken.
✓ Branch 9 taken 208 times.
✗ Branch 10 not taken.
✓ Branch 12 taken 10496 times.
✗ Branch 13 not taken.
13776 struct ImageData {
22 std::vector<uint8_t> data;
23 int width = 0;
24 int height = 0;
25 };
26
27 using InType = ImageData;
28 using OutType = std::vector<std::vector<Point>>;
29 using BaseTask = ppc::task::Task<InType, OutType>;
30
31 } // namespace egorova_l_binary_convex_hull
32