| Percentage | Lines | ||
|---|---|---|---|
| Forwarder |
|
9 % | 63 |
| PortConnection |
|
50 % | 70 |
| Header |
|
70 % | 277 |
| ProxyConnection |
|
81 % | 81 |
| Server |
|
100 % | 40 |
| CRAP Score | Lines | ||
|---|---|---|---|
| Header::encodeAddress() | 13 | 19 | |
| Header::decodeAddress() | 13 | 21 | |
| Header::encodePort() | 13 | 20 | |
| Header::parseVersion1() | 12 | 14 | |
| Forwarder::forward() | 12 | 37 | |
| ProxyConnection::handleData() | 11 | 16 | |
| Header::parseHeader() | 8 | 22 | |
| Header::constructProxyHeader() | 3 | 11 | |
| Header::getProtocol() | 2 | 8 | |
| Header::getVersionCommand() | 2 | 5 | |