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

Method testAllocation

test/object.cpp:1657–1676  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1655 }
1656
1657 void
1658 testAllocation()
1659 {
1660 {
1661 checking_resource res;
1662 object o(&res);
1663 o.reserve(1);
1664 }
1665
1666 {
1667 checking_resource res;
1668 object o(&res);
1669 o.reserve(1000);
1670 }
1671
1672 {
1673 checking_resource res;
1674 object o({std::make_pair("one", 1)}, &res);
1675 }
1676 }
1677
1678 void
1679 testHash()

Callers

nothing calls this directly

Calls 1

reserveMethod · 0.45

Tested by

no test coverage detected