| 144 | } |
| 145 | |
| 146 | void HttpHeaderProcessorTest::testGetHttpResponseHeader_statusOnly() |
| 147 | { |
| 148 | HttpHeaderProcessor proc(HttpHeaderProcessor::CLIENT_PARSER); |
| 149 | |
| 150 | std::string hd = "HTTP/1.1 200\r\n\r\n"; |
| 151 | CPPUNIT_ASSERT(proc.parse(hd)); |
| 152 | auto header = proc.getResult(); |
| 153 | CPPUNIT_ASSERT_EQUAL(200, header->getStatusCode()); |
| 154 | } |
| 155 | |
| 156 | void HttpHeaderProcessorTest:: |
| 157 | testGetHttpResponseHeader_insufficientStatusLength() |
nothing calls this directly
no test coverage detected