blob: 9a46d0c84a2f0cd5764b365d79d89bbb4afd1ca3 [file] [log] [blame]
Krzysztof Grobelnyd2238192020-12-02 09:27:28 +00001#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
10namespace utils
11{
12
13inline void PrintTo(const LabeledMetricParameters& o, std::ostream* os)
14{
15 using testing::PrintToString;
16
17 (*os) << "{ ";
Krzysztof Grobelnye8fc5752021-02-05 14:30:45 +000018 (*os) << utils::tstring::SensorPath::str() << ": "
19 << PrintToString(o.at_label<utils::tstring::SensorPath>()) << ", ";
Krzysztof Grobelnyd2238192020-12-02 09:27:28 +000020 (*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
Krzysztof Grobelnye8fc5752021-02-05 14:30:45 +000029} // namespace utils