| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | #pragma once | ||
| 2 | |||
| 3 | #include <cstdint> | ||
| 4 | #include <string> | ||
| 5 | #include <tuple> | ||
| 6 | #include <utility> | ||
| 7 | #include <vector> | ||
| 8 | |||
| 9 | #include "task/include/task.hpp" | ||
| 10 | |||
| 11 | namespace zenin_a_gauss_filter { | ||
| 12 | |||
| 13 |
5/10✓ Branch 0 taken 440 times.
✓ Branch 1 taken 440 times.
✗ Branch 2 not taken.
✓ Branch 3 taken 877 times.
✓ Branch 4 taken 3 times.
✗ Branch 5 not taken.
✓ Branch 6 taken 528 times.
✗ Branch 7 not taken.
✗ Branch 8 not taken.
✗ Branch 9 not taken.
|
4576 | struct Image { |
| 14 | int height = 0; | ||
| 15 | int width = 0; | ||
| 16 | int channels = 0; | ||
| 17 | std::vector<std::uint8_t> pixels; | ||
| 18 | 440 | Image() = default; | |
| 19 | 528 | Image(int h, int w, int c, std::vector<std::uint8_t> p) : height(h), width(w), channels(c), pixels(std::move(p)) {} | |
| 20 | bool operator==(const Image &another) const { | ||
| 21 | return width == another.width && height == another.height && channels == another.channels && | ||
| 22 | pixels == another.pixels; | ||
| 23 | } | ||
| 24 | }; | ||
| 25 | |||
| 26 | using InType = Image; | ||
| 27 | using OutType = Image; | ||
| 28 | using TestType = std::tuple<std::string, int, int, int>; | ||
| 29 | using BaseTask = ppc::task::Task<InType, OutType>; | ||
| 30 | |||
| 31 | } // namespace zenin_a_gauss_filter | ||
| 32 |