MCPcopy Create free account
hub / github.com/boostorg/beast / testChunkHeader

Method testChunkHeader

test/beast/http/chunk_encode.cpp:80–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78 }
79
80 void
81 testChunkHeader()
82 {
83 check<chunk_header>("10\r\n", 16u);
84
85 check<chunk_header>("20;x\r\n", 32u, ";x");
86
87 chunk_extensions exts;
88 exts.insert("y");
89 exts.insert("z");
90
91 check<chunk_header>("30;y;z\r\n", 48u, exts);
92
93 {
94 auto exts2 = exts;
95
96 check_fwd<chunk_header>(
97 "30;y;z\r\n", 48u, std::move(exts2));
98 }
99
100 check<chunk_header>("30;y;z\r\n", 48u, exts,
101 std::allocator<double>{});
102
103 {
104 auto exts2 = exts;
105
106 check<chunk_header>(
107 "30;y;z\r\n", 48u, std::move(exts2),
108 std::allocator<double>{});
109 }
110 }
111
112 void
113 testChunkBody()

Callers

nothing calls this directly

Calls 2

moveClass · 0.85
insertMethod · 0.45

Tested by

no test coverage detected