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

Method testParser2

test/bench/parser/bench_parser.cpp:117–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115
116 template<class Parser>
117 void
118 testParser2(std::size_t repeat, corpus const& v)
119 {
120 while(repeat--)
121 for(auto const& b : v)
122 {
123 Parser p;
124 p.header_limit((std::numeric_limits<std::uint32_t>::max)());
125 error_code ec;
126 feed(b.data(), p, ec);
127 if(! BEAST_EXPECTS(! ec, ec.message()))
128 log << buffers_to_string(b.data()) << std::endl;
129 }
130 }
131
132 template<class Function>
133 void

Callers

nothing calls this directly

Calls 4

buffers_to_stringFunction · 0.85
header_limitMethod · 0.80
messageMethod · 0.80
dataMethod · 0.45

Tested by

no test coverage detected