blob: f21d42afaaec1d208b67ecc0f2156f0fb836264c [file] [log] [blame]
#pragma once
#include "metric_value.hpp"
#include <gmock/gmock.h>
inline void PrintTo(const MetricValue& o, std::ostream* os)
{
(*os) << "{ id: " << o.id << ", metadata: " << o.metadata
<< ", value: " << o.value << ", timestamp: " << o.timestamp << " }";
}
inline bool operator==(const MetricValue& left, const MetricValue& right)
{
return std::tie(left.id, left.metadata, left.value, left.timestamp) ==
std::tie(right.id, right.metadata, right.value, right.timestamp);
}