Krzysztof Grobelny | d223819 | 2020-12-02 09:27:28 +0000 | [diff] [blame^] | 1 | #pragma once |
| 2 | |
| 3 | #include "helpers/interfaces/labeled_sensor_parameter_helpers.hpp" |
| 4 | #include "interfaces/types.hpp" |
| 5 | |
| 6 | #include <ostream> |
| 7 | |
| 8 | #include <gmock/gmock.h> |
| 9 | |
| 10 | namespace utils |
| 11 | { |
| 12 | |
| 13 | inline void PrintTo(const LabeledMetricParameters& o, std::ostream* os) |
| 14 | { |
| 15 | using testing::PrintToString; |
| 16 | |
| 17 | (*os) << "{ "; |
| 18 | (*os) << utils::tstring::SensorPaths::str() << ": " |
| 19 | << PrintToString(o.at_label<utils::tstring::SensorPaths>()) << ", "; |
| 20 | (*os) << utils::tstring::OperationType::str() << ": " |
| 21 | << PrintToString(o.at_label<utils::tstring::OperationType>()) << ", "; |
| 22 | (*os) << utils::tstring::Id::str() << ": " |
| 23 | << PrintToString(o.at_label<utils::tstring::Id>()) << ", "; |
| 24 | (*os) << utils::tstring::MetricMetadata::str() << ": " |
| 25 | << PrintToString(o.at_label<utils::tstring::MetricMetadata>()); |
| 26 | (*os) << " }"; |
| 27 | } |
| 28 | |
| 29 | } // namespace utils |