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 20 40 60 Line Coverage (%) Cyclomatic Complexity Stewart\Testing\HaContext\RecordingHaContext — Coverage: 86.4% | Lines: 118 | Complexity: 48 Stewart\Testing\HaContext\SeededHistory — Coverage: 100.0% | Lines: 33 | Complexity: 14 Stewart\Testing\HaContext\RecordedServiceCall — Coverage: 0.0% | Lines: 3 | Complexity: 4 Stewart\Testing\HaContext\RecordedStateReader — Coverage: 0.0% | Lines: 2 | Complexity: 2 Stewart\Testing\HaContext\Collection\RecordedEventFireCollection — Coverage: 0.0% | Lines: 1 | Complexity: 1 Stewart\Testing\HaContext\Collection\RecordedHistoryQueryCollection — Coverage: 0.0% | Lines: 1 | Complexity: 1 Stewart\Testing\HaContext\Collection\RecordedServiceCallCollection — Coverage: 0.0% | Lines: 1 | Complexity: 1 Stewart\Testing\HaContext\Collection\WatchedTriggerCollection — Coverage: 0.0% | Lines: 1 | Complexity: 1 Stewart\Testing\HaContext\PushedTrigger — Coverage: 0.0% | Lines: 1 | Complexity: 1 Stewart\Testing\HaContext\RecordedEventFire — Coverage: 0.0% | Lines: 1 | Complexity: 1 Stewart\Testing\HaContext\RecordedHistoryQuery — Coverage: 0.0% | Lines: 1 | Complexity: 1 Stewart\Testing\HaContext\WatchedTrigger — Coverage: 0.0% | Lines: 1 | Complexity: 1

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\Testing\HaContext\SeededHistory::sliceForWindow — Coverage: 100.0% | Lines: 16 | Complexity: 7 Stewart\Testing\HaContext\RecordingHaContext::__construct — Coverage: 100.0% | Lines: 15 | Complexity: 1 Stewart\Testing\HaContext\RecordingHaContext::callStubbedService — Coverage: 92.3% | Lines: 13 | Complexity: 3 Stewart\Testing\HaContext\RecordingHaContext::pushState — Coverage: 100.0% | Lines: 10 | Complexity: 2 Stewart\Testing\HaContext\RecordingHaContext::fireEvent — Coverage: 100.0% | Lines: 9 | Complexity: 3 Stewart\Testing\HaContext\RecordingHaContext::getHistory — Coverage: 100.0% | Lines: 8 | Complexity: 3 Stewart\Testing\HaContext\SeededHistory::recordState — Coverage: 100.0% | Lines: 7 | Complexity: 1 Stewart\Testing\HaContext\RecordingHaContext::watchStateChanges — Coverage: 100.0% | Lines: 6 | Complexity: 2 Stewart\Testing\HaContext\SeededHistory::dropRepeatedStates — Coverage: 100.0% | Lines: 6 | Complexity: 4 Stewart\Testing\HaContext\RecordingHaContext::seedState — Coverage: 100.0% | Lines: 5 | Complexity: 1 Stewart\Testing\HaContext\RecordingHaContext::pushStateChange — Coverage: 80.0% | Lines: 5 | Complexity: 2 Stewart\Testing\HaContext\RecordingHaContext::watchTrigger — Coverage: 100.0% | Lines: 5 | Complexity: 1 Stewart\Testing\HaContext\RecordingHaContext::listStates — Coverage: 66.7% | Lines: 3 | Complexity: 4 Stewart\Testing\HaContext\RecordingHaContext::watchEvents — Coverage: 100.0% | Lines: 3 | Complexity: 1 Stewart\Testing\HaContext\RecordingHaContext::publish — Coverage: 100.0% | Lines: 3 | Complexity: 1 Stewart\Testing\HaContext\RecordingHaContext::watchTopic — Coverage: 0.0% | Lines: 3 | Complexity: 1 Stewart\Testing\HaContext\SeededHistory::listStatesInOrder — Coverage: 100.0% | Lines: 3 | Complexity: 1 Stewart\Testing\HaContext\RecordingHaContext::seedHistoricalState — Coverage: 100.0% | Lines: 2 | Complexity: 1 Stewart\Testing\HaContext\RecordingHaContext::stubHistoryFailure — Coverage: 100.0% | Lines: 2 | Complexity: 1 Stewart\Testing\HaContext\RecordingHaContext::stubServiceAnswer — Coverage: 0.0% | Lines: 2 | Complexity: 1 Stewart\Testing\HaContext\RecordingHaContext::stubServiceFailure — Coverage: 0.0% | Lines: 2 | Complexity: 1 Stewart\Testing\HaContext\RecordingHaContext::stubEventFireFailure — Coverage: 100.0% | Lines: 2 | Complexity: 1 Stewart\Testing\HaContext\RecordingHaContext::cancelSubscriptions — Coverage: 0.0% | Lines: 2 | Complexity: 2 Stewart\Testing\HaContext\RecordingHaContext::pushConnection — Coverage: 100.0% | Lines: 2 | Complexity: 1 Stewart\Testing\HaContext\RecordingHaContext::requireState — Coverage: 100.0% | Lines: 2 | Complexity: 1 Stewart\Testing\HaContext\Collection\RecordedEventFireCollection::withRecordedFire — Coverage: 0.0% | Lines: 1 | Complexity: 1 Stewart\Testing\HaContext\Collection\RecordedHistoryQueryCollection::withRecordedQuery — Coverage: 0.0% | Lines: 1 | Complexity: 1 Stewart\Testing\HaContext\Collection\RecordedServiceCallCollection::withRecordedCall — Coverage: 0.0% | Lines: 1 | Complexity: 1 Stewart\Testing\HaContext\Collection\WatchedTriggerCollection::withWatchedTrigger — Coverage: 0.0% | Lines: 1 | Complexity: 1 Stewart\Testing\HaContext\PushedTrigger::__construct — Coverage: 0.0% | Lines: 1 | Complexity: 1 Stewart\Testing\HaContext\RecordedEventFire::__construct — Coverage: 0.0% | Lines: 1 | Complexity: 1 Stewart\Testing\HaContext\RecordedHistoryQuery::__construct — Coverage: 0.0% | Lines: 1 | Complexity: 1 Stewart\Testing\HaContext\RecordedServiceCall::__construct — Coverage: 0.0% | Lines: 1 | Complexity: 1 Stewart\Testing\HaContext\RecordedServiceCall::getServiceName — Coverage: 0.0% | Lines: 1 | Complexity: 1 Stewart\Testing\HaContext\RecordedServiceCall::listTargetedEntityIds — Coverage: 0.0% | Lines: 1 | Complexity: 2 Stewart\Testing\HaContext\RecordedStateReader::__construct — Coverage: 0.0% | Lines: 1 | Complexity: 1 Stewart\Testing\HaContext\RecordedStateReader::readCurrentStates — Coverage: 0.0% | Lines: 1 | Complexity: 1 Stewart\Testing\HaContext\RecordingHaContext::pushEvent — Coverage: 0.0% | Lines: 1 | Complexity: 1 Stewart\Testing\HaContext\RecordingHaContext::pushTrigger — Coverage: 100.0% | Lines: 1 | Complexity: 1 Stewart\Testing\HaContext\RecordingHaContext::listWatchedTriggers — Coverage: 100.0% | Lines: 1 | Complexity: 1 Stewart\Testing\HaContext\RecordingHaContext::getLastCall — Coverage: 0.0% | Lines: 1 | Complexity: 1 Stewart\Testing\HaContext\RecordingHaContext::getState — Coverage: 100.0% | Lines: 1 | Complexity: 1 Stewart\Testing\HaContext\RecordingHaContext::getEntity — Coverage: 100.0% | Lines: 1 | Complexity: 1 Stewart\Testing\HaContext\RecordingHaContext::waitForState — Coverage: 100.0% | Lines: 1 | Complexity: 1 Stewart\Testing\HaContext\RecordingHaContext::getRegistry — Coverage: 100.0% | Lines: 1 | Complexity: 1 Stewart\Testing\HaContext\RecordingHaContext::callService — Coverage: 100.0% | Lines: 1 | Complexity: 1 Stewart\Testing\HaContext\RecordingHaContext::callServiceForResponse — Coverage: 100.0% | Lines: 1 | Complexity: 1 Stewart\Testing\HaContext\RecordingHaContext::wasCausedByStewart — Coverage: 100.0% | Lines: 1 | Complexity: 1 Stewart\Testing\HaContext\RecordingHaContext::watchConnection — Coverage: 0.0% | Lines: 1 | Complexity: 1 Stewart\Testing\HaContext\RecordingHaContext::isConnected — Coverage: 0.0% | Lines: 1 | Complexity: 1 Stewart\Testing\HaContext\RecordingHaContext::issueContext — Coverage: 100.0% | Lines: 1 | Complexity: 1 Stewart\Testing\HaContext\SeededHistory::stripAttributes — Coverage: 100.0% | Lines: 1 | Complexity: 1 Stewart\Testing\HaContext\WatchedTrigger::__construct — Coverage: 0.0% | Lines: 1 | Complexity: 1

Sorted by descending CRAP index.

Method CRAP Coverage
Stewart\Testing\HaContext\SeededHistory::sliceForWindow7100.0%
Stewart\Testing\HaContext\RecordedServiceCall::listTargetedEntityIds60.0%
Stewart\Testing\HaContext\RecordingHaContext::cancelSubscriptions60.0%
Stewart\Testing\HaContext\RecordingHaContext::listStates4.5966.7%
Stewart\Testing\HaContext\SeededHistory::dropRepeatedStates4100.0%
Stewart\Testing\HaContext\RecordingHaContext::getHistory3100.0%
Stewart\Testing\HaContext\RecordingHaContext::fireEvent3100.0%
Stewart\Testing\HaContext\RecordingHaContext::callStubbedService3.0092.3%
Stewart\Testing\HaContext\RecordingHaContext::pushStateChange2.0380.0%
Stewart\Testing\HaContext\Collection\RecordedEventFireCollection::withRecordedFire20.0%
Stewart\Testing\HaContext\Collection\RecordedHistoryQueryCollection::withRecordedQuery20.0%
Stewart\Testing\HaContext\Collection\RecordedServiceCallCollection::withRecordedCall20.0%
Stewart\Testing\HaContext\Collection\WatchedTriggerCollection::withWatchedTrigger20.0%
Stewart\Testing\HaContext\PushedTrigger::__construct20.0%
Stewart\Testing\HaContext\RecordedEventFire::__construct20.0%
Stewart\Testing\HaContext\RecordedHistoryQuery::__construct20.0%
Stewart\Testing\HaContext\RecordedServiceCall::__construct20.0%
Stewart\Testing\HaContext\RecordedServiceCall::getServiceName20.0%
Stewart\Testing\HaContext\RecordedStateReader::__construct20.0%
Stewart\Testing\HaContext\RecordedStateReader::readCurrentStates20.0%
Stewart\Testing\HaContext\RecordingHaContext::stubServiceAnswer20.0%
Stewart\Testing\HaContext\RecordingHaContext::stubServiceFailure20.0%
Stewart\Testing\HaContext\RecordingHaContext::pushState2100.0%
Stewart\Testing\HaContext\RecordingHaContext::pushEvent20.0%
Stewart\Testing\HaContext\RecordingHaContext::getLastCall20.0%
Stewart\Testing\HaContext\RecordingHaContext::watchStateChanges2100.0%
Stewart\Testing\HaContext\RecordingHaContext::watchTopic20.0%
Stewart\Testing\HaContext\RecordingHaContext::watchConnection20.0%
Stewart\Testing\HaContext\RecordingHaContext::isConnected20.0%
Stewart\Testing\HaContext\WatchedTrigger::__construct20.0%
Stewart\Testing\HaContext\RecordingHaContext::__construct1100.0%
Stewart\Testing\HaContext\RecordingHaContext::seedState1100.0%
Stewart\Testing\HaContext\RecordingHaContext::seedHistoricalState1100.0%
Stewart\Testing\HaContext\RecordingHaContext::stubHistoryFailure1100.0%
Stewart\Testing\HaContext\RecordingHaContext::stubEventFireFailure1100.0%
Stewart\Testing\HaContext\RecordingHaContext::pushTrigger1100.0%
Stewart\Testing\HaContext\RecordingHaContext::listWatchedTriggers1100.0%
Stewart\Testing\HaContext\RecordingHaContext::pushConnection1100.0%
Stewart\Testing\HaContext\RecordingHaContext::getState1100.0%
Stewart\Testing\HaContext\RecordingHaContext::getEntity1100.0%
Stewart\Testing\HaContext\RecordingHaContext::requireState1100.0%
Stewart\Testing\HaContext\RecordingHaContext::waitForState1100.0%
Stewart\Testing\HaContext\RecordingHaContext::getRegistry1100.0%
Stewart\Testing\HaContext\RecordingHaContext::watchEvents1100.0%
Stewart\Testing\HaContext\RecordingHaContext::watchTrigger1100.0%
Stewart\Testing\HaContext\RecordingHaContext::callService1100.0%
Stewart\Testing\HaContext\RecordingHaContext::callServiceForResponse1100.0%
Stewart\Testing\HaContext\RecordingHaContext::wasCausedByStewart1100.0%
Stewart\Testing\HaContext\RecordingHaContext::publish1100.0%
Stewart\Testing\HaContext\RecordingHaContext::issueContext1100.0%
Stewart\Testing\HaContext\SeededHistory::recordState1100.0%
Stewart\Testing\HaContext\SeededHistory::listStatesInOrder1100.0%
Stewart\Testing\HaContext\SeededHistory::stripAttributes1100.0%