| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | #include "dorogin_v_min_vector_value/seq/include/ops_seq.hpp" | ||
| 2 | |||
| 3 | #include <algorithm> | ||
| 4 | |||
| 5 | #include "dorogin_v_min_vector_value/common/include/common.hpp" | ||
| 6 | |||
| 7 | namespace dorogin_v_min_vector_value { | ||
| 8 | |||
| 9 |
1/2✓ Branch 1 taken 352 times.
✗ Branch 2 not taken.
|
352 | DoroginVMinVectorValueSEQ::DoroginVMinVectorValueSEQ(const InType &in) { |
| 10 | SetTypeOfTask(GetStaticTypeOfTask()); | ||
| 11 |
1/2✓ Branch 1 taken 352 times.
✗ Branch 2 not taken.
|
352 | GetInput() = in; |
| 12 | 352 | GetOutput() = 0; | |
| 13 | 352 | } | |
| 14 | |||
| 15 | 352 | bool DoroginVMinVectorValueSEQ::ValidationImpl() { | |
| 16 | 352 | return !GetInput().empty(); | |
| 17 | } | ||
| 18 | |||
| 19 | 352 | bool DoroginVMinVectorValueSEQ::PreProcessingImpl() { | |
| 20 | 352 | return true; | |
| 21 | } | ||
| 22 | |||
| 23 |
1/2✓ Branch 0 taken 352 times.
✗ Branch 1 not taken.
|
352 | bool DoroginVMinVectorValueSEQ::RunImpl() { |
| 24 | const auto &data = GetInput(); | ||
| 25 | |||
| 26 | const auto it_min = std::ranges::min_element(data); | ||
| 27 | |||
| 28 |
1/2✓ Branch 0 taken 352 times.
✗ Branch 1 not taken.
|
352 | GetOutput() = (it_min != data.end()) ? *it_min : 0; |
| 29 | |||
| 30 | 352 | return true; | |
| 31 | } | ||
| 32 | |||
| 33 | 352 | bool DoroginVMinVectorValueSEQ::PostProcessingImpl() { | |
| 34 | 352 | return true; | |
| 35 | } | ||
| 36 | |||
| 37 | } // namespace dorogin_v_min_vector_value | ||
| 38 |