blob: f21d42afaaec1d208b67ecc0f2156f0fb836264c [file] [log] [blame]
Krzysztof Grobelny6ccfcbf2020-11-04 09:31:36 +01001#pragma once
2
3#include "metric_value.hpp"
4
5#include <gmock/gmock.h>
6
7inline void PrintTo(const MetricValue& o, std::ostream* os)
8{
9 (*os) << "{ id: " << o.id << ", metadata: " << o.metadata
10 << ", value: " << o.value << ", timestamp: " << o.timestamp << " }";
11}
12
13inline bool operator==(const MetricValue& left, const MetricValue& right)
14{
15 return std::tie(left.id, left.metadata, left.value, left.timestamp) ==
16 std::tie(right.id, right.metadata, right.value, right.timestamp);
17}