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

Method test

test/null_resource.cpp:23–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21{
22public:
23 void
24 test()
25 {
26 auto& mr = *get_null_resource();
27 BOOST_TEST_THROWS(
28 mr.allocate(16),
29 std::bad_alloc);
30 char buf[128];
31 // no-op
32 mr.deallocate(&buf[0], 128);
33 BOOST_TEST(
34 mr == *get_null_resource());
35 }
36
37 void
38 run()

Callers

nothing calls this directly

Calls 1

deallocateMethod · 0.80

Tested by

no test coverage detected