Classes

Line coverage against cyclomatic complexity. Bubble size is the number of executable lines; hover for details, click to navigate.

0% 20% 40% 60% 80% 100% 0 10 20 30 Line Coverage (%) Cyclomatic Complexity Stewart\Codegen\Snapshot\SnapshotCodec — Coverage: 100.0% | Lines: 81 | Complexity: 27 Stewart\Codegen\Snapshot\RawMap — Coverage: 79.2% | Lines: 24 | Complexity: 21 Stewart\Codegen\Snapshot\HaClientSnapshotFetcher — Coverage: 100.0% | Lines: 17 | Complexity: 5 Stewart\Codegen\Snapshot\Snapshot — Coverage: 100.0% | Lines: 13 | Complexity: 2 Stewart\Codegen\Snapshot\SnapshotFileReader — Coverage: 100.0% | Lines: 5 | Complexity: 4 Stewart\Codegen\Snapshot\SnapshotFileWriter — Coverage: 100.0% | Lines: 3 | Complexity: 3

Sorted by descending CRAP index.

Methods

Line coverage against cyclomatic complexity. Bubble size is the number of executable lines; hover for details, click to navigate.

0% 20% 40% 60% 80% 100% 0 2 4 6 8 Line Coverage (%) Cyclomatic Complexity Stewart\Codegen\Snapshot\HaClientSnapshotFetcher::fetchSnapshot — Coverage: 100.0% | Lines: 13 | Complexity: 1 Stewart\Codegen\Snapshot\Snapshot::fromParts — Coverage: 100.0% | Lines: 12 | Complexity: 1 Stewart\Codegen\Snapshot\SnapshotCodec::buildSnapshotFromDecodedJson — Coverage: 100.0% | Lines: 12 | Complexity: 4 Stewart\Codegen\Snapshot\SnapshotCodec::decodeEntriesSkippingInvalidIds — Coverage: 100.0% | Lines: 11 | Complexity: 6 Stewart\Codegen\Snapshot\SnapshotCodec::buildSnapshotArray — Coverage: 100.0% | Lines: 9 | Complexity: 1 Stewart\Codegen\Snapshot\SnapshotCodec::buildEntityStateArray — Coverage: 100.0% | Lines: 9 | Complexity: 2 Stewart\Codegen\Snapshot\SnapshotCodec::buildAreaArray — Coverage: 100.0% | Lines: 8 | Complexity: 1 Stewart\Codegen\Snapshot\SnapshotCodec::buildFloorArray — Coverage: 100.0% | Lines: 7 | Complexity: 1 Stewart\Codegen\Snapshot\SnapshotCodec::buildLabelArray — Coverage: 100.0% | Lines: 7 | Complexity: 1 Stewart\Codegen\Snapshot\RawMap::listMaps — Coverage: 83.3% | Lines: 6 | Complexity: 3 Stewart\Codegen\Snapshot\RawMap::listStrings — Coverage: 83.3% | Lines: 6 | Complexity: 3 Stewart\Codegen\Snapshot\SnapshotCodec::decodeSnapshot — Coverage: 100.0% | Lines: 6 | Complexity: 4 Stewart\Codegen\Snapshot\SnapshotCodec::decodeRegistryRows — Coverage: 100.0% | Lines: 6 | Complexity: 5 Stewart\Codegen\Snapshot\SnapshotCodec::encodeSnapshot — Coverage: 100.0% | Lines: 5 | Complexity: 1 Stewart\Codegen\Snapshot\SnapshotFileReader::readSnapshot — Coverage: 100.0% | Lines: 4 | Complexity: 3 Stewart\Codegen\Snapshot\HaClientSnapshotFetcher::refuseUnlessRunning — Coverage: 100.0% | Lines: 3 | Complexity: 3 Stewart\Codegen\Snapshot\RawMap::readString — Coverage: 100.0% | Lines: 2 | Complexity: 3 Stewart\Codegen\Snapshot\RawMap::readScalar — Coverage: 100.0% | Lines: 2 | Complexity: 2 Stewart\Codegen\Snapshot\RawMap::readNumber — Coverage: 0.0% | Lines: 2 | Complexity: 3 Stewart\Codegen\Snapshot\SnapshotFileWriter::writeSnapshot — Coverage: 100.0% | Lines: 2 | Complexity: 2 Stewart\Codegen\Snapshot\HaClientSnapshotFetcher::__construct — Coverage: 100.0% | Lines: 1 | Complexity: 1 Stewart\Codegen\Snapshot\RawMap::__construct — Coverage: 100.0% | Lines: 1 | Complexity: 1 Stewart\Codegen\Snapshot\RawMap::fromValue — Coverage: 100.0% | Lines: 1 | Complexity: 2 Stewart\Codegen\Snapshot\RawMap::hasKey — Coverage: 0.0% | Lines: 1 | Complexity: 1 Stewart\Codegen\Snapshot\RawMap::listKeys — Coverage: 100.0% | Lines: 1 | Complexity: 1 Stewart\Codegen\Snapshot\RawMap::readBool — Coverage: 100.0% | Lines: 1 | Complexity: 1 Stewart\Codegen\Snapshot\RawMap::readMap — Coverage: 100.0% | Lines: 1 | Complexity: 1 Stewart\Codegen\Snapshot\Snapshot::__construct — Coverage: 100.0% | Lines: 1 | Complexity: 1 Stewart\Codegen\Snapshot\SnapshotCodec::__construct — Coverage: 100.0% | Lines: 1 | Complexity: 1 Stewart\Codegen\Snapshot\SnapshotFileReader::__construct — Coverage: 100.0% | Lines: 1 | Complexity: 1 Stewart\Codegen\Snapshot\SnapshotFileWriter::__construct — Coverage: 100.0% | Lines: 1 | Complexity: 1

Sorted by descending CRAP index.

Method CRAP Coverage
Stewart\Codegen\Snapshot\RawMap::readNumber120.0%
Stewart\Codegen\Snapshot\SnapshotCodec::decodeEntriesSkippingInvalidIds6100.0%
Stewart\Codegen\Snapshot\SnapshotCodec::decodeRegistryRows5100.0%
Stewart\Codegen\Snapshot\SnapshotCodec::decodeSnapshot4100.0%
Stewart\Codegen\Snapshot\SnapshotCodec::buildSnapshotFromDecodedJson4100.0%
Stewart\Codegen\Snapshot\RawMap::listMaps3.0483.3%
Stewart\Codegen\Snapshot\RawMap::listStrings3.0483.3%
Stewart\Codegen\Snapshot\HaClientSnapshotFetcher::refuseUnlessRunning3100.0%
Stewart\Codegen\Snapshot\RawMap::readString3100.0%
Stewart\Codegen\Snapshot\SnapshotFileReader::readSnapshot3100.0%
Stewart\Codegen\Snapshot\RawMap::fromValue2100.0%
Stewart\Codegen\Snapshot\RawMap::hasKey20.0%
Stewart\Codegen\Snapshot\RawMap::readScalar2100.0%
Stewart\Codegen\Snapshot\SnapshotCodec::buildEntityStateArray2100.0%
Stewart\Codegen\Snapshot\SnapshotFileWriter::writeSnapshot2100.0%
Stewart\Codegen\Snapshot\HaClientSnapshotFetcher::__construct1100.0%
Stewart\Codegen\Snapshot\HaClientSnapshotFetcher::fetchSnapshot1100.0%
Stewart\Codegen\Snapshot\RawMap::__construct1100.0%
Stewart\Codegen\Snapshot\RawMap::listKeys1100.0%
Stewart\Codegen\Snapshot\RawMap::readBool1100.0%
Stewart\Codegen\Snapshot\RawMap::readMap1100.0%
Stewart\Codegen\Snapshot\Snapshot::__construct1100.0%
Stewart\Codegen\Snapshot\Snapshot::fromParts1100.0%
Stewart\Codegen\Snapshot\SnapshotCodec::__construct1100.0%
Stewart\Codegen\Snapshot\SnapshotCodec::encodeSnapshot1100.0%
Stewart\Codegen\Snapshot\SnapshotCodec::buildSnapshotArray1100.0%
Stewart\Codegen\Snapshot\SnapshotCodec::buildAreaArray1100.0%
Stewart\Codegen\Snapshot\SnapshotCodec::buildFloorArray1100.0%
Stewart\Codegen\Snapshot\SnapshotCodec::buildLabelArray1100.0%
Stewart\Codegen\Snapshot\SnapshotFileReader::__construct1100.0%
Stewart\Codegen\Snapshot\SnapshotFileWriter::__construct1100.0%