blob: 9634de3d9fe399b535ac584fc61e3f5e1cb9ccff [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);
Patrick Williams3a1c2972023-05-10 07:51:04 -050017}