33#include "storages/serializeble_struct_helper.h"
48 KV_SERIALIZE_VAL(
m_str)
89 KV_SERIALIZE_VAL(
m_str)
119 return b.m_str !=
a.m_str;
157 s.
m_str =
"zuzuzuzuzuz";
168 s.
m_pod.
a = 32342342342342;
213 LOG_ERROR(
"Portable storage test failed!");
224 LOG_ERROR(
"Portable storage test failed!");
bool store_to_binary(binarybuffer &target)
bool load_from_binary(const epee::span< const uint8_t > target)
bool operator==(expect< T > const &lhs, expect< U > const &rhs) noexcept(noexcept(lhs.equal(rhs)))
#define KV_SERIALIZE_VAL_POD_AS_BLOB(varialble)
#define END_KV_SERIALIZE_MAP()
#define BEGIN_KV_SERIALIZE_MAP()
bool store_t_to_json(t_struct &str_in, std::string &json_buff, size_t indent=0, bool insert_newlines=true)
bool load_t_from_json(t_struct &out, const std::string &json_buff)
void fill_struct_with_test_values(port_test_struct &s)
bool test_portable_storages(const std::string &tests_folder)
const GenericPointer< typename T::ValueType > T2 T::AllocatorType & a
unsigned __int64 uint64_t
port_test_struct_sub m_subobj
std::list< port_test_struct > m_list_of_self
std::list< double > m_list_of_double
std::list< int64_t > m_list_of_int64_t
std::list< uint16_t > m_list_of_uint16_t
std::list< int32_t > m_list_of_int32_t
std::list< int8_t > m_list_of_int8_t
std::list< uint64_t > m_list_of_uint64_t
std::list< uint8_t > m_list_of_uint8_t
std::list< bool > m_list_of_bool
std::list< int16_t > m_list_of_int16_t
std::list< uint32_t > m_list_of_uint32_t
std::list< std::string > m_list_of_str