blob: dee48bd346d12f88533224fbe327be0f01b47c2a [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{
Krzysztof Grobelnycff70c12022-10-27 07:16:08 +00009 (*os) << "{ metadata: " << o.metadata << ", value: " << o.value
10 << ", timestamp: " << o.timestamp << " }";
Krzysztof Grobelny6ccfcbf2020-11-04 09:31:36 +010011}
12
13inline bool operator==(const MetricValue& left, const MetricValue& right)
14{
Krzysztof Grobelnycff70c12022-10-27 07:16:08 +000015 return std::tie(left.metadata, left.value, left.timestamp) ==
16 std::tie(right.metadata, right.value, right.timestamp);
Patrick Williams3a1c2972023-05-10 07:51:04 -050017}