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

Method testCtors

test/stream_parser.cpp:39–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37 //------------------------------------------------------
38
39 void
40 testCtors()
41 {
42 // stream_parser(stream_parser const&)
43 BOOST_CORE_STATIC_ASSERT(
44 ! std::is_copy_constructible<stream_parser>::value);
45
46 // operator=(stream_parser const&)
47 BOOST_CORE_STATIC_ASSERT(
48 ! std::is_copy_assignable<stream_parser>::value);
49
50 // ~stream_parser()
51 {
52 {
53 stream_parser p;
54 }
55
56 {
57 stream_parser p;
58 p.reset(make_shared_resource<
59 monotonic_resource>());
60 }
61 }
62
63 // stream_parser(storage_ptr, parse_options, unsigned char*, size_t)
64 {
65 unsigned char buf[256];
66 stream_parser p(
67 storage_ptr(),
68 parse_options(),
69 &buf[0],
70 sizeof(buf));
71 }
72
73 // stream_parser()
74 {
75 stream_parser p;
76 }
77
78 // stream_parser(storage_ptr, parse_options)
79 {
80 stream_parser p(storage_ptr{}, parse_options());
81 }
82
83 // stream_parser(storage_ptr)
84 {
85 stream_parser p(storage_ptr{});
86 }
87
88 // stream_parser(storage_ptr, parse_options, unsigned char[])
89 {
90 unsigned char buf[256];
91 stream_parser p(
92 storage_ptr(),
93 parse_options(),
94 buf);
95 }
96

Callers

nothing calls this directly

Calls 3

parse_optionsClass · 0.85
storage_ptrClass · 0.50
resetMethod · 0.45

Tested by

no test coverage detected