| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | #include "kutuzov_i_torus_grid/seq/include/ops_seq.hpp" | ||
| 2 | |||
| 3 | #include <string> | ||
| 4 | #include <tuple> | ||
| 5 | #include <vector> | ||
| 6 | |||
| 7 | #include "kutuzov_i_torus_grid/common/include/common.hpp" | ||
| 8 | |||
| 9 | namespace kutuzov_i_torus_grid { | ||
| 10 | |||
| 11 |
2/4✓ Branch 1 taken 72 times.
✗ Branch 2 not taken.
✓ Branch 4 taken 72 times.
✗ Branch 5 not taken.
|
72 | KutuzovIThorusGridSEQ::KutuzovIThorusGridSEQ(const InType &in) { |
| 12 | SetTypeOfTask(GetStaticTypeOfTask()); | ||
| 13 | GetInput() = in; | ||
| 14 | ✗ | GetOutput() = std::make_tuple(std::vector<int>{}, ""); | |
| 15 | 72 | } | |
| 16 | |||
| 17 | 72 | bool KutuzovIThorusGridSEQ::ValidationImpl() { | |
| 18 | 72 | return true; | |
| 19 | } | ||
| 20 | |||
| 21 | 72 | bool KutuzovIThorusGridSEQ::PreProcessingImpl() { | |
| 22 | 72 | return true; | |
| 23 | } | ||
| 24 | |||
| 25 | 72 | bool KutuzovIThorusGridSEQ::RunImpl() { | |
| 26 | const int long_string_size = 10'000'000; | ||
| 27 | |||
| 28 | 72 | std::vector<int> route = {1, 2, 3, 4, 5}; | |
| 29 | |||
| 30 | // Doing something to make perf tests work | ||
| 31 | std::string message; | ||
| 32 |
2/2✓ Branch 0 taken 720000000 times.
✓ Branch 1 taken 72 times.
|
720000072 | for (int i = 0; i < long_string_size; i++) { |
| 33 | message += 'a'; | ||
| 34 | } | ||
| 35 | 72 | GetOutput() = std::make_tuple(route, message); | |
| 36 | |||
| 37 | 72 | return true; | |
| 38 | } | ||
| 39 | |||
| 40 | 72 | bool KutuzovIThorusGridSEQ::PostProcessingImpl() { | |
| 41 | 72 | return true; | |
| 42 | } | ||
| 43 | |||
| 44 | } // namespace kutuzov_i_torus_grid | ||
| 45 |