1#define BOOST_TEST_MODULE variant
2#include <boost/test/included/unit_test.hpp>
11BOOST_AUTO_TEST_SUITE(variant_estimated_size_suite)
73 char c[] =
"Hello World";
74 const char* cc =
"Goodbye";
75 wchar_t wc[] = L
"0123456789";
76 const wchar_t* cwc = L
"foo";
77 string s =
"abcdefghijklmnopqrstuvwxyz";
95 bl.data.push_back(
'f');
96 bl.data.push_back(
'o');
97 bl.data.push_back(
'o');
106 string k1 =
"key_bool";
107 string k2 =
"key_string";
108 string k3 =
"key_int16";
109 string k4 =
"key_blob";
112 string s =
"HelloWorld";
115 bl.data.push_back(
'b');
116 bl.data.push_back(
'a');
117 bl.data.push_back(
'r');
133 sizeof(
variant_object) +
sizeof(std::vector<variant_object::entry>));
135 sizeof(
variant_object) +
sizeof(std::vector<variant_object::entry>));
141 wchar_t wc[] = L
"Goodbye";
149 vs.push_back(v_bool);
150 vs.push_back(v_wchar);
151 vs.push_back(v_uint32);
157BOOST_AUTO_TEST_SUITE_END()
An order-preserving dictionary of variants.
An order-preserving dictionary of variants.
size_t estimated_size() const
stores null, int64, uint64, double, bool, string, std::vector<variant>, and variant_object's.
size_t estimated_size() const
Defines exception's used by fc.
std::vector< fc::variant > variants
decltype(nullptr) nullptr_t
unsigned __int64 uint64_t
BOOST_AUTO_TEST_CASE(null_variant_estimated_size_test)