Krzysztof Grobelny | 6ccfcbf | 2020-11-04 09:31:36 +0100 | [diff] [blame] | 1 | #pragma once |
| 2 | |
| 3 | #include "metric_value.hpp" |
| 4 | |
| 5 | #include <gmock/gmock.h> |
| 6 | |
| 7 | inline 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 | |
| 13 | inline 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 Williams | 3a1c297 | 2023-05-10 07:51:04 -0500 | [diff] [blame^] | 17 | } |