| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | #pragma once | ||
| 2 | |||
| 3 | #include <string> | ||
| 4 | #include <tuple> | ||
| 5 | |||
| 6 | #include "task/include/task.hpp" | ||
| 7 | |||
| 8 | namespace moskaev_v_hypercub { | ||
| 9 | |||
| 10 | struct HypercubeTestData { | ||
| 11 | int test_size; | ||
| 12 | int seed; | ||
| 13 | bool test_communication; | ||
| 14 | bool test_computation; | ||
| 15 | |||
| 16 | 60 | HypercubeTestData() : test_size(0), seed(0), test_communication(true), test_computation(true) {} | |
| 17 | |||
| 18 | HypercubeTestData(int size, int s, bool comm = true, bool comp = true) | ||
| 19 | : test_size(size), seed(s), test_communication(comm), test_computation(comp) {} | ||
| 20 | }; | ||
| 21 | |||
| 22 | struct HypercubeTestResult { | ||
| 23 | bool topology_verified{false}; | ||
| 24 | bool communication_ok{false}; | ||
| 25 | bool computation_ok{false}; | ||
| 26 | int total_tests_passed{0}; | ||
| 27 | int max_hops_required{0}; | ||
| 28 | |||
| 29 | HypercubeTestResult() = default; // Удалить старый конструктор | ||
| 30 | }; | ||
| 31 | |||
| 32 | using InType = HypercubeTestData; | ||
| 33 | using OutType = HypercubeTestResult; | ||
| 34 | using TestType = std::tuple<HypercubeTestData, std::string>; | ||
| 35 | |||
| 36 | using BaseTask = ppc::task::Task<InType, OutType>; | ||
| 37 | |||
| 38 | } // namespace moskaev_v_hypercub | ||
| 39 |