| Percentage | Lines | ||
|---|---|---|---|
| Parser |
|
82 % | 27 |
| Base |
|
87 % | 45 |
| UDPListener |
|
92 % | 29 |
| PacketFormatNotSupportedException |
|
100 % | 7 |
| Collection |
|
100 % | 34 |
| Battery |
|
100 % | 12 |
| Channel |
|
100 % | 19 |
| Current |
|
100 % | 13 |
| Day |
|
100 % | 13 |
| Electricity |
|
100 % | 63 |
| CRAP Score | Lines | ||
|---|---|---|---|
| ElectricityXMLParser::parse() | 4 | 30 | |
| Base::__construct() | 3 | 10 | |
| Electricity::__construct() | 3 | 20 | |
| ParserResolver::getParser() | 3 | 18 | |
| StdOutStorage::storePacket() | 3 | 12 | |
| Base::__get() | 2 | 11 | |
| UDPListener::__construct() | 2 | 9 | |
| Base::__set() | 2 | 7 | |
| Base::__isset() | 2 | 4 | |
| Channel::__construct() | 2 | 16 | |