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

Method testChunkFinal

test/beast/http/chunk_encode.cpp:151–187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149 }
150
151 void
152 testChunkFinal()
153 {
154 check<chunk_last<>>(
155 "0\r\n\r\n");
156
157 check<chunk_last<cb_t>>(
158 "0\r\nMD5:ou812\r\n\r\n",
159 cb("MD5:ou812\r\n\r\n"));
160
161 fields trailers;
162 trailers.set(field::content_digest, "ou812");
163
164 check<chunk_last<fields>>(
165 "0\r\nContent-Digest: ou812\r\n\r\n",
166 trailers);
167
168 {
169 auto trailers2 = trailers;
170
171 check_fwd<chunk_last<fields>>(
172 "0\r\nContent-Digest: ou812\r\n\r\n",
173 std::move(trailers2));
174 }
175
176 check<chunk_last<fields>>(
177 "0\r\nContent-Digest: ou812\r\n\r\n",
178 trailers, std::allocator<double>{});
179
180 {
181 auto trailers2 = trailers;
182
183 check<chunk_last<fields>>(
184 "0\r\nContent-Digest: ou812\r\n\r\n",
185 std::move(trailers2), std::allocator<double>{});
186 }
187 }
188
189 void
190 testChunkExtensions()

Callers

nothing calls this directly

Calls 1

moveClass · 0.85

Tested by

no test coverage detected