| 1213 | //------------------------------------------------------ |
| 1214 | |
| 1215 | void |
| 1216 | testGetStorage() |
| 1217 | { |
| 1218 | auto const sp = |
| 1219 | make_shared_resource<unique_resource>(); |
| 1220 | |
| 1221 | value obj(object{}, sp); |
| 1222 | value arr(array{}, sp); |
| 1223 | value str(string{}, sp); |
| 1224 | value i64(std::int64_t{}, sp); |
| 1225 | value u64(std::uint64_t{}, sp); |
| 1226 | value dub(double{}, sp); |
| 1227 | value boo(true, sp); |
| 1228 | value nul(nullptr, sp); |
| 1229 | |
| 1230 | // storage() |
| 1231 | { |
| 1232 | BOOST_TEST(*obj.storage() == *sp); |
| 1233 | BOOST_TEST(*arr.storage() == *sp); |
| 1234 | BOOST_TEST(*str.storage() == *sp); |
| 1235 | BOOST_TEST(*i64.storage() == *sp); |
| 1236 | BOOST_TEST(*u64.storage() == *sp); |
| 1237 | BOOST_TEST(*dub.storage() == *sp); |
| 1238 | BOOST_TEST(*boo.storage() == *sp); |
| 1239 | BOOST_TEST(*nul.storage() == *sp); |
| 1240 | } |
| 1241 | } |
| 1242 | |
| 1243 | void |
| 1244 | testIf() |
nothing calls this directly
no outgoing calls
no test coverage detected