5#include <userver/utest/utest.hpp>
6#include <userver/utils/fast_scope_guard.hpp>
8#include <userver/dump/operations_mock.hpp>
10USERVER_NAMESPACE_BEGIN
16std::string
ToBinary(
const T& value) {
19 return std::move(writer).Extract();
25 MockReader reader(std::move(data));
26 T value = reader.Read<T>();
36 MockReader reader(
dump::ToBinary(original));
37 T after_cycle = reader.Read<T>();
39 EXPECT_EQ(after_cycle, original);