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 40 Line Coverage (%) Cyclomatic Complexity Stewart\Contracts\State\EntityState — Coverage: 83.3% | Lines: 24 | Complexity: 28 Stewart\Contracts\State\Collection\EntityStateCollection — Coverage: 94.7% | Lines: 19 | Complexity: 13 Stewart\Contracts\State\StateChange — Coverage: 85.7% | Lines: 14 | Complexity: 17 Stewart\Contracts\State\EventContext — Coverage: 90.9% | Lines: 11 | Complexity: 9

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 1 2 3 4 5 Line Coverage (%) Cyclomatic Complexity Stewart\Contracts\State\EventContext::fromArray — Coverage: 100.0% | Lines: 8 | Complexity: 4 Stewart\Contracts\State\Collection\EntityStateCollection::filterBySelector — Coverage: 100.0% | Lines: 5 | Complexity: 3 Stewart\Contracts\State\Collection\EntityStateCollection::groupByDomain — Coverage: 100.0% | Lines: 4 | Complexity: 2 Stewart\Contracts\State\EntityState::getIntAttribute — Coverage: 75.0% | Lines: 4 | Complexity: 4 Stewart\Contracts\State\Collection\EntityStateCollection::listDomains — Coverage: 100.0% | Lines: 3 | Complexity: 1 Stewart\Contracts\State\EntityState::getFloatAttribute — Coverage: 100.0% | Lines: 2 | Complexity: 2 Stewart\Contracts\State\EntityState::getStringAttribute — Coverage: 100.0% | Lines: 2 | Complexity: 2 Stewart\Contracts\State\EntityState::getBoolAttribute — Coverage: 100.0% | Lines: 2 | Complexity: 2 Stewart\Contracts\State\EntityState::getArrayAttribute — Coverage: 100.0% | Lines: 2 | Complexity: 2 Stewart\Contracts\State\EntityState::hasHeldFor — Coverage: 100.0% | Lines: 2 | Complexity: 2 Stewart\Contracts\State\EntityState::getFriendlyName — Coverage: 100.0% | Lines: 2 | Complexity: 2 Stewart\Contracts\State\StateChange::wasCausedBy — Coverage: 100.0% | Lines: 2 | Complexity: 2 Stewart\Contracts\State\Collection\EntityStateCollection::keyedByEntityId — Coverage: 100.0% | Lines: 1 | Complexity: 1 Stewart\Contracts\State\Collection\EntityStateCollection::find — Coverage: 100.0% | Lines: 1 | Complexity: 1 Stewart\Contracts\State\Collection\EntityStateCollection::withState — Coverage: 100.0% | Lines: 1 | Complexity: 1 Stewart\Contracts\State\Collection\EntityStateCollection::withoutState — Coverage: 100.0% | Lines: 1 | Complexity: 1 Stewart\Contracts\State\Collection\EntityStateCollection::listEntityIds — Coverage: 100.0% | Lines: 1 | Complexity: 1 Stewart\Contracts\State\Collection\EntityStateCollection::filterByEntityFilter — Coverage: 100.0% | Lines: 1 | Complexity: 1 Stewart\Contracts\State\Collection\EntityStateCollection::sortedByEntityId — Coverage: 0.0% | Lines: 1 | Complexity: 1 Stewart\Contracts\State\EntityState::__construct — Coverage: 100.0% | Lines: 1 | Complexity: 1 Stewart\Contracts\State\EntityState::getDomain — Coverage: 0.0% | Lines: 1 | Complexity: 1 Stewart\Contracts\State\EntityState::getObjectId — Coverage: 0.0% | Lines: 1 | Complexity: 1 Stewart\Contracts\State\EntityState::isUnavailable — Coverage: 100.0% | Lines: 1 | Complexity: 2 Stewart\Contracts\State\EntityState::wasLastChangedBy — Coverage: 100.0% | Lines: 1 | Complexity: 2 Stewart\Contracts\State\EntityState::getAttribute — Coverage: 0.0% | Lines: 1 | Complexity: 1 Stewart\Contracts\State\EntityState::getStateAsFloat — Coverage: 100.0% | Lines: 1 | Complexity: 2 Stewart\Contracts\State\EntityState::getHeldDuration — Coverage: 100.0% | Lines: 1 | Complexity: 2 Stewart\Contracts\State\EventContext::__construct — Coverage: 100.0% | Lines: 1 | Complexity: 1 Stewart\Contracts\State\EventContext::unknown — Coverage: 0.0% | Lines: 1 | Complexity: 1 Stewart\Contracts\State\EventContext::isSameOrParentOf — Coverage: 100.0% | Lines: 1 | Complexity: 3 Stewart\Contracts\State\StateChange::__construct — Coverage: 100.0% | Lines: 1 | Complexity: 1 Stewart\Contracts\State\StateChange::fromCurrentState — Coverage: 100.0% | Lines: 1 | Complexity: 1 Stewart\Contracts\State\StateChange::withFrom — Coverage: 100.0% | Lines: 1 | Complexity: 1 Stewart\Contracts\State\StateChange::isReconstructed — Coverage: 0.0% | Lines: 1 | Complexity: 1 Stewart\Contracts\State\StateChange::isInitial — Coverage: 100.0% | Lines: 1 | Complexity: 1 Stewart\Contracts\State\StateChange::isNew — Coverage: 100.0% | Lines: 1 | Complexity: 2 Stewart\Contracts\State\StateChange::isRemoved — Coverage: 100.0% | Lines: 1 | Complexity: 1 Stewart\Contracts\State\StateChange::hasStateChanged — Coverage: 100.0% | Lines: 1 | Complexity: 1 Stewart\Contracts\State\StateChange::changedTo — Coverage: 100.0% | Lines: 1 | Complexity: 2 Stewart\Contracts\State\StateChange::changedFrom — Coverage: 100.0% | Lines: 1 | Complexity: 2 Stewart\Contracts\State\StateChange::findCausingContext — Coverage: 100.0% | Lines: 1 | Complexity: 1 Stewart\Contracts\State\StateChange::getDomain — Coverage: 0.0% | Lines: 1 | Complexity: 1

Sorted by descending CRAP index.

Method CRAP Coverage
Stewart\Contracts\State\EntityState::getIntAttribute4.2575.0%
Stewart\Contracts\State\EventContext::fromArray4100.0%
Stewart\Contracts\State\Collection\EntityStateCollection::filterBySelector3100.0%
Stewart\Contracts\State\EventContext::isSameOrParentOf3100.0%
Stewart\Contracts\State\Collection\EntityStateCollection::sortedByEntityId20.0%
Stewart\Contracts\State\Collection\EntityStateCollection::groupByDomain2100.0%
Stewart\Contracts\State\EntityState::getDomain20.0%
Stewart\Contracts\State\EntityState::getObjectId20.0%
Stewart\Contracts\State\EntityState::isUnavailable2100.0%
Stewart\Contracts\State\EntityState::wasLastChangedBy2100.0%
Stewart\Contracts\State\EntityState::getAttribute20.0%
Stewart\Contracts\State\EntityState::getFloatAttribute2100.0%
Stewart\Contracts\State\EntityState::getStringAttribute2100.0%
Stewart\Contracts\State\EntityState::getBoolAttribute2100.0%
Stewart\Contracts\State\EntityState::getArrayAttribute2100.0%
Stewart\Contracts\State\EntityState::getStateAsFloat2100.0%
Stewart\Contracts\State\EntityState::getHeldDuration2100.0%
Stewart\Contracts\State\EntityState::hasHeldFor2100.0%
Stewart\Contracts\State\EntityState::getFriendlyName2100.0%
Stewart\Contracts\State\EventContext::unknown20.0%
Stewart\Contracts\State\StateChange::isReconstructed20.0%
Stewart\Contracts\State\StateChange::isNew2100.0%
Stewart\Contracts\State\StateChange::changedTo2100.0%
Stewart\Contracts\State\StateChange::changedFrom2100.0%
Stewart\Contracts\State\StateChange::wasCausedBy2100.0%
Stewart\Contracts\State\StateChange::getDomain20.0%
Stewart\Contracts\State\Collection\EntityStateCollection::keyedByEntityId1100.0%
Stewart\Contracts\State\Collection\EntityStateCollection::find1100.0%
Stewart\Contracts\State\Collection\EntityStateCollection::withState1100.0%
Stewart\Contracts\State\Collection\EntityStateCollection::withoutState1100.0%
Stewart\Contracts\State\Collection\EntityStateCollection::listEntityIds1100.0%
Stewart\Contracts\State\Collection\EntityStateCollection::filterByEntityFilter1100.0%
Stewart\Contracts\State\Collection\EntityStateCollection::listDomains1100.0%
Stewart\Contracts\State\EntityState::__construct1100.0%
Stewart\Contracts\State\EventContext::__construct1100.0%
Stewart\Contracts\State\StateChange::__construct1100.0%
Stewart\Contracts\State\StateChange::fromCurrentState1100.0%
Stewart\Contracts\State\StateChange::withFrom1100.0%
Stewart\Contracts\State\StateChange::isInitial1100.0%
Stewart\Contracts\State\StateChange::isRemoved1100.0%
Stewart\Contracts\State\StateChange::hasStateChanged1100.0%
Stewart\Contracts\State\StateChange::findCausingContext1100.0%