GCC Code Coverage Report


Directory: ./
File: tasks/ivanova_p_marking_components_on_binary_image/common/include/common.hpp
Date: 2026-04-02 17:12:27
Exec Total Coverage
Lines: 1 1 100.0%
Functions: 0 0 -%
Branches: 0 0 -%

Line Branch Exec Source
1 #pragma once
2
3 #include <cstdint>
4 #include <string>
5 #include <tuple>
6 #include <vector>
7
8 #include "task/include/task.hpp"
9
10 namespace ivanova_p_marking_components_on_binary_image {
11
12 using InType = int; // Возвращаем int для совместимости с BaseRunFuncTests
13 using OutType = std::vector<int>; // Выходные данные - изображение с метками компонент
14 using TestType = std::tuple<int, std::string>;
15 using BaseTask = ppc::task::Task<InType, OutType>;
16
17 916 struct Image {
18 int width = 0;
19 int height = 0;
20 std::vector<uint8_t> data; // 0 - фон (белый), 1 - объект (черный)
21 };
22
23 // Глобальная переменная для передачи изображения между этапами тестирования
24 static Image test_image;
25
26 } // namespace ivanova_p_marking_components_on_binary_image
27