GCC Code Coverage Report


Directory: ./
File: tasks/pankov_gauss_filter/common/include/common.hpp
Date: 2026-01-27 01:59:34
Exec Total Coverage
Lines: 5 5 100.0%
Functions: 1 1 100.0%
Branches: 5 14 35.7%

Line Branch Exec Source
1 #pragma once
2
3 #include <cstdint>
4 #include <ostream>
5 #include <tuple>
6 #include <utility>
7 #include <vector>
8
9 #include "task/include/task.hpp"
10
11 namespace pankov_gauss_filter {
12
13
5/14
✗ Branch 0 not taken.
✗ Branch 1 not taken.
✓ Branch 2 taken 50 times.
✗ Branch 3 not taken.
✗ Branch 4 not taken.
✓ Branch 5 taken 50 times.
✗ Branch 6 not taken.
✗ Branch 7 not taken.
✗ Branch 8 not taken.
✓ Branch 9 taken 50 times.
✓ Branch 11 taken 50 times.
✗ Branch 12 not taken.
✓ Branch 14 taken 50 times.
✗ Branch 15 not taken.
5080 struct Image {
14 int width = 0;
15 int height = 0;
16 int channels = 0;
17 std::vector<std::uint8_t> data;
18
19 Image() = default;
20
21 Image(int w, int h, int ch, std::vector<std::uint8_t> d) : width(w), height(h), channels(ch), data(std::move(d)) {}
22 };
23
24 280 inline void PrintTo(const Image &img, std::ostream *os) {
25 840 *os << "Image{width=" << img.width << ", height=" << img.height << ", channels=" << img.channels
26 280 << ", data_size=" << img.data.size() << "}";
27 280 }
28
29 using InType = Image;
30 using OutType = Image;
31 using TestType = std::tuple<InType, OutType>;
32 using BaseTask = ppc::task::Task<InType, OutType>;
33
34 } // namespace pankov_gauss_filter
35