| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | #include "akhmetov_daniil_mesh_torus/seq/include/ops_seq.hpp" | ||
| 2 | |||
| 3 | #include <vector> | ||
| 4 | |||
| 5 | #include "akhmetov_daniil_mesh_torus/common/include/common.hpp" | ||
| 6 | #include "task/include/task.hpp" | ||
| 7 | |||
| 8 | namespace akhmetov_daniil_mesh_torus { | ||
| 9 | |||
| 10 |
1/2✓ Branch 1 taken 40 times.
✗ Branch 2 not taken.
|
40 | MeshTorusSeq::MeshTorusSeq(const InType &in) { |
| 11 | SetTypeOfTask(ppc::task::TypeOfTask::kSEQ); | ||
| 12 | GetInput() = in; | ||
| 13 | 40 | } | |
| 14 | |||
| 15 | 40 | bool MeshTorusSeq::ValidationImpl() { | |
| 16 | const auto &in = GetInput(); | ||
| 17 |
2/4✓ Branch 0 taken 40 times.
✗ Branch 1 not taken.
✗ Branch 2 not taken.
✓ Branch 3 taken 40 times.
|
40 | return in.source >= 0 && in.dest >= 0; |
| 18 | } | ||
| 19 | |||
| 20 | 40 | bool MeshTorusSeq::PreProcessingImpl() { | |
| 21 | 40 | return true; | |
| 22 | } | ||
| 23 | |||
| 24 | 40 | bool MeshTorusSeq::RunImpl() { | |
| 25 | const auto &in = GetInput(); | ||
| 26 | auto &out = GetOutput(); | ||
| 27 | |||
| 28 | 40 | out.payload = in.payload; | |
| 29 | |||
| 30 | out.path.clear(); | ||
| 31 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 40 times.
|
40 | out.path.push_back(in.source); |
| 32 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 40 times.
|
40 | if (in.source != in.dest) { |
| 33 | ✗ | out.path.push_back(in.dest); | |
| 34 | } | ||
| 35 | |||
| 36 | 40 | return true; | |
| 37 | } | ||
| 38 | |||
| 39 | 40 | bool MeshTorusSeq::PostProcessingImpl() { | |
| 40 | 40 | return true; | |
| 41 | } | ||
| 42 | |||
| 43 | } // namespace akhmetov_daniil_mesh_torus | ||
| 44 |