33 #include "storages/serializeble_struct_helper.h" 48 KV_SERIALIZE_VAL(
m_str)
52 #pragma pack (push, 1) 89 KV_SERIALIZE_VAL(
m_str)
90 KV_SERIALIZE_VAL(m_uint64)
91 KV_SERIALIZE_VAL(m_uint32)
92 KV_SERIALIZE_VAL(m_uint16)
93 KV_SERIALIZE_VAL(m_uint8)
94 KV_SERIALIZE_VAL(m_int64)
95 KV_SERIALIZE_VAL(m_int32)
96 KV_SERIALIZE_VAL(m_int16)
97 KV_SERIALIZE_VAL(m_int8)
98 KV_SERIALIZE_VAL(m_double)
99 KV_SERIALIZE_VAL(m_bool)
101 KV_SERIALIZE_OBJ(m_subobj)
102 KV_SERIALIZE_CONTAINER_VAL(m_list_of_str)
103 KV_SERIALIZE_CONTAINER_VAL(m_list_of_uint64_t)
104 KV_SERIALIZE_CONTAINER_VAL(m_list_of_uint32_t)
105 KV_SERIALIZE_CONTAINER_VAL(m_list_of_uint16_t)
106 KV_SERIALIZE_CONTAINER_VAL(m_list_of_uint8_t)
107 KV_SERIALIZE_CONTAINER_VAL(m_list_of_int64_t)
108 KV_SERIALIZE_CONTAINER_VAL(m_list_of_int32_t)
109 KV_SERIALIZE_CONTAINER_VAL(m_list_of_int16_t)
110 KV_SERIALIZE_CONTAINER_VAL(m_list_of_int8_t)
111 KV_SERIALIZE_CONTAINER_VAL(m_list_of_double)
112 KV_SERIALIZE_CONTAINER_VAL(m_list_of_bool)
113 KV_SERIALIZE_CONTAINER_OBJ(m_list_of_self)
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!");
std::list< int64_t > m_list_of_int64_t
std::list< bool > m_list_of_bool
std::list< uint32_t > m_list_of_uint32_t
std::list< uint64_t > m_list_of_uint64_t
std::list< uint16_t > m_list_of_uint16_t
std::list< int16_t > m_list_of_int16_t
bool load_from_binary(const epee::span< const uint8_t > target)
bool store_t_to_json(t_struct &str_in, std::string &json_buff, size_t indent=0, bool insert_newlines=true)
std::list< port_test_struct > m_list_of_self
void fill_struct_with_test_values(port_test_struct &s)
std::list< int32_t > m_list_of_int32_t
std::list< std::string > m_list_of_str
std::list< uint8_t > m_list_of_uint8_t
bool load_t_from_json(t_struct &out, const std::string &json_buff)
unsigned __int64 uint64_t
std::list< double > m_list_of_double
#define KV_SERIALIZE_VAL_POD_AS_BLOB(varialble)
const GenericPointer< typename T::ValueType > T2 T::AllocatorType & a
bool store_to_binary(binarybuffer &target)
std::list< int8_t > m_list_of_int8_t
bool test_portable_storages(const std::string &tests_folder)
#define END_KV_SERIALIZE_MAP()
bool operator==(const port_test_struct &a, const port_test_struct &b)
#define BEGIN_KV_SERIALIZE_MAP()
port_test_struct_sub m_subobj