MCPcopy Create free account
hub / github.com/boostorg/json / testGet

Method testGet

test/value.cpp:2159–2242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2157 }
2158
2159 void
2160 testGet()
2161 {
2162 value obj(object{});
2163 value arr(array{});
2164 value str(string{});
2165 value i64(std::int64_t{});
2166 value u64(std::uint64_t{});
2167 value dub(double{});
2168 value boo(true);
2169
2170 auto const& cobj(obj);
2171 auto const& carr(arr);
2172 auto const& cstr(str);
2173 auto const& ci64(i64);
2174 auto const& cu64(u64);
2175 auto const& cdub(dub);
2176 auto const& cboo(boo);
2177
2178 // get_object() &
2179 // get_array() &
2180 // get_string() &
2181 // get_int64()
2182 // get_uint64()
2183 // get_double()
2184 // get_bool()
2185 {
2186 object& xobj = obj.get_object();
2187 array& xarr = arr.get_array();
2188 string& xstr = str.get_string();
2189 std::int64_t& xi64 = i64.get_int64();
2190 std::uint64_t& xu64 = u64.get_uint64();
2191 double& xdub = dub.get_double();
2192 bool& xboo = boo.get_bool();
2193
2194 (void)(xobj);
2195 (void)(xarr);
2196 (void)(xstr);
2197 (void)(xi64);
2198 (void)(xu64);
2199 (void)(xdub);
2200 (void)(xboo);
2201 }
2202
2203 // get_object() const&
2204 // get_array() const&
2205 // get_string() const&
2206 // get_int64() const
2207 // get_uint64() const
2208 // get_double() const
2209 // get_bool() const
2210 {
2211 object const& xobj = cobj.get_object();
2212 array const& xarr = carr.get_array();
2213 string const& xstr = cstr.get_string();
2214 std::int64_t
2215 const& xi64 = ci64.get_int64();
2216 std::uint64_t

Callers

nothing calls this directly

Calls 4

get_int64Method · 0.80
get_uint64Method · 0.80
get_doubleMethod · 0.80
get_boolMethod · 0.80

Tested by

no test coverage detected