blob: 9a46d0c84a2f0cd5764b365d79d89bbb4afd1ca3 [file] [log] [blame]
#pragma once
#include "helpers/interfaces/labeled_sensor_parameter_helpers.hpp"
#include "interfaces/types.hpp"
#include <ostream>
#include <gmock/gmock.h>
namespace utils
{
inline void PrintTo(const LabeledMetricParameters& o, std::ostream* os)
{
using testing::PrintToString;
(*os) << "{ ";
(*os) << utils::tstring::SensorPath::str() << ": "
<< PrintToString(o.at_label<utils::tstring::SensorPath>()) << ", ";
(*os) << utils::tstring::OperationType::str() << ": "
<< PrintToString(o.at_label<utils::tstring::OperationType>()) << ", ";
(*os) << utils::tstring::Id::str() << ": "
<< PrintToString(o.at_label<utils::tstring::Id>()) << ", ";
(*os) << utils::tstring::MetricMetadata::str() << ": "
<< PrintToString(o.at_label<utils::tstring::MetricMetadata>());
(*os) << " }";
}
} // namespace utils