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

Method testParser1

test/bench/parser/bench_parser.cpp:102–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100
101 template<class Parser>
102 void
103 testParser1(std::size_t repeat, corpus const& v)
104 {
105 while(repeat--)
106 for(auto const& b : v)
107 {
108 Parser p;
109 error_code ec;
110 p.write(b.data(), ec);
111 if(! BEAST_EXPECTS(! ec, ec.message()))
112 log << buffers_to_string(b.data()) << std::endl;
113 }
114 }
115
116 template<class Parser>
117 void

Callers

nothing calls this directly

Calls 4

buffers_to_stringFunction · 0.85
messageMethod · 0.80
writeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected