blob: 3666a62a038a35a2c73c06574b3911cc33f22a98 [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) << "{ ";
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