GCC Code Coverage Report


Directory: ./
File: tasks/paramonov_v_bin_img_conv_hul/common/include/common.hpp
Date: 2026-04-02 17:12:27
Exec Total Coverage
Lines: 1 2 50.0%
Functions: 0 0 -%
Branches: 2 5 40.0%

Line Branch Exec Source
1 #pragma once
2
3 #include <cstdint>
4 #include <vector>
5
6 #include "task/include/task.hpp"
7
8 namespace paramonov_v_bin_img_conv_hul {
9
10 struct PixelPoint {
11 int row{0};
12 int col{0};
13
14 PixelPoint() = default;
15 PixelPoint(int r, int c) : row(r), col(c) {}
16
17 bool operator==(const PixelPoint &other) const {
18 return row == other.row && col == other.col;
19 }
20
21 bool operator<(const PixelPoint &other) const {
22 return (row == other.row) ? col < other.col : row < other.row;
23 }
24 };
25
26
2/5
✓ Branch 1 taken 448 times.
✗ Branch 2 not taken.
✗ Branch 3 not taken.
✓ Branch 5 taken 2016 times.
✗ Branch 6 not taken.
2464 struct GrayImage {
27 std::vector<uint8_t> pixels;
28 int rows = 0;
29 int cols = 0;
30 };
31
32 using InputType = GrayImage;
33 using OutputType = std::vector<std::vector<PixelPoint>>;
34 using HullTaskBase = ppc::task::Task<InputType, OutputType>;
35
36 } // namespace paramonov_v_bin_img_conv_hul
37