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

Method testCtors

test/parser.cpp:35–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

parse_optionsClass · 0.85
storage_ptrClass · 0.50

Tested by

no test coverage detected