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\Runtime\Dispatch\SubscriptionQueue — Coverage: 93.1% | Lines: 101 | Complexity: 50 Stewart\Runtime\Dispatch\LocalDispatcher — Coverage: 98.0% | Lines: 99 | Complexity: 47 Stewart\Runtime\Dispatch\SelectorIndex — Coverage: 97.5% | Lines: 40 | Complexity: 14 Stewart\Runtime\Dispatch\EntityFilterIndex — Coverage: 100.0% | Lines: 17 | Complexity: 10 Stewart\Runtime\Dispatch\QueuedWork — Coverage: 0.0% | Lines: 11 | Complexity: 9 Stewart\Runtime\Dispatch\LocalSubscription — Coverage: 100.0% | Lines: 7 | Complexity: 5 Stewart\Runtime\Dispatch\DispatchSource — Coverage: 0.0% | Lines: 2 | Complexity: 2 Stewart\Runtime\Dispatch\RegisteredSubscription — Coverage: 50.0% | Lines: 2 | Complexity: 2 Stewart\Runtime\Dispatch\IndexedSelector — Coverage: 100.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 10 Line Coverage (%) Cyclomatic Complexity Stewart\Runtime\Dispatch\LocalDispatcher::register — Coverage: 100.0% | Lines: 33 | Complexity: 9 Stewart\Runtime\Dispatch\SelectorIndex::findMatching — Coverage: 92.3% | Lines: 13 | Complexity: 6 Stewart\Runtime\Dispatch\LocalDispatcher::dispatchExposedCommand — Coverage: 100.0% | Lines: 12 | Complexity: 4 Stewart\Runtime\Dispatch\SubscriptionQueue::findOldestSupersededIndex — Coverage: 100.0% | Lines: 12 | Complexity: 6 Stewart\Runtime\Dispatch\SubscriptionQueue::dropSupersededStateChange — Coverage: 100.0% | Lines: 12 | Complexity: 4 Stewart\Runtime\Dispatch\SelectorIndex::remove — Coverage: 100.0% | Lines: 11 | Complexity: 4 Stewart\Runtime\Dispatch\SubscriptionQueue::cancel — Coverage: 72.7% | Lines: 11 | Complexity: 4 Stewart\Runtime\Dispatch\SubscriptionQueue::pushWithin — Coverage: 81.8% | Lines: 11 | Complexity: 4 Stewart\Runtime\Dispatch\LocalDispatcher::listStateChangeQueuesMatching — Coverage: 100.0% | Lines: 10 | Complexity: 4 Stewart\Runtime\Dispatch\LocalDispatcher::cancel — Coverage: 100.0% | Lines: 8 | Complexity: 2 Stewart\Runtime\Dispatch\SelectorIndex::add — Coverage: 100.0% | Lines: 8 | Complexity: 2 Stewart\Runtime\Dispatch\SubscriptionQueue::discardPendingWork — Coverage: 87.5% | Lines: 8 | Complexity: 3 Stewart\Runtime\Dispatch\SelectorIndex::getRoutingStats — Coverage: 100.0% | Lines: 7 | Complexity: 1 Stewart\Runtime\Dispatch\EntityFilterIndex::findMatching — Coverage: 100.0% | Lines: 6 | Complexity: 4 Stewart\Runtime\Dispatch\LocalDispatcher::dispatchStateChanges — Coverage: 100.0% | Lines: 6 | Complexity: 4 Stewart\Runtime\Dispatch\SubscriptionQueue::emit — Coverage: 83.3% | Lines: 6 | Complexity: 3 Stewart\Runtime\Dispatch\SubscriptionQueue::dropOnOverflow — Coverage: 100.0% | Lines: 6 | Complexity: 3 Stewart\Runtime\Dispatch\SubscriptionQueue::drain — Coverage: 100.0% | Lines: 6 | Complexity: 5 Stewart\Runtime\Dispatch\SubscriptionQueue::runQueuedWork — Coverage: 100.0% | Lines: 6 | Complexity: 3 Stewart\Runtime\Dispatch\EntityFilterIndex::matchFilters — Coverage: 100.0% | Lines: 5 | Complexity: 3 Stewart\Runtime\Dispatch\SubscriptionQueue::dropOldestEvent — Coverage: 100.0% | Lines: 5 | Complexity: 3 Stewart\Runtime\Dispatch\LocalDispatcher::__construct — Coverage: 100.0% | Lines: 4 | Complexity: 1 Stewart\Runtime\Dispatch\LocalDispatcher::refusedSubscription — Coverage: 100.0% | Lines: 4 | Complexity: 1 Stewart\Runtime\Dispatch\LocalDispatcher::deliver — Coverage: 100.0% | Lines: 4 | Complexity: 4 Stewart\Runtime\Dispatch\LocalSubscription::unsubscribe — Coverage: 100.0% | Lines: 4 | Complexity: 2 Stewart\Runtime\Dispatch\QueuedWork::__invoke — Coverage: 0.0% | Lines: 4 | Complexity: 2 Stewart\Runtime\Dispatch\SubscriptionQueue::recordOverflowDrop — Coverage: 100.0% | Lines: 4 | Complexity: 1 Stewart\Runtime\Dispatch\SubscriptionQueue::startDraining — Coverage: 100.0% | Lines: 4 | Complexity: 2 Stewart\Runtime\Dispatch\EntityFilterIndex::add — Coverage: 100.0% | Lines: 3 | Complexity: 1 Stewart\Runtime\Dispatch\LocalDispatcher::dispatchConnection — Coverage: 100.0% | Lines: 3 | Complexity: 3 Stewart\Runtime\Dispatch\SubscriptionQueue::pushBurst — Coverage: 100.0% | Lines: 3 | Complexity: 2 Stewart\Runtime\Dispatch\SubscriptionQueue::enqueue — Coverage: 100.0% | Lines: 3 | Complexity: 2 Stewart\Runtime\Dispatch\EntityFilterIndex::remove — Coverage: 100.0% | Lines: 2 | Complexity: 1 Stewart\Runtime\Dispatch\LocalDispatcher::startDrainingQueuesOf — Coverage: 100.0% | Lines: 2 | Complexity: 2 Stewart\Runtime\Dispatch\LocalDispatcher::discardPendingWorkOf — Coverage: 100.0% | Lines: 2 | Complexity: 2 Stewart\Runtime\Dispatch\LocalDispatcher::cancelAll — Coverage: 50.0% | Lines: 2 | Complexity: 2 Stewart\Runtime\Dispatch\LocalDispatcher::cancelSubscriptionsOf — Coverage: 100.0% | Lines: 2 | Complexity: 2 Stewart\Runtime\Dispatch\QueuedWork::discard — Coverage: 0.0% | Lines: 2 | Complexity: 2 Stewart\Runtime\Dispatch\SubscriptionQueue::startDrainingIfPending — Coverage: 100.0% | Lines: 2 | Complexity: 3 Stewart\Runtime\Dispatch\DispatchSource::__construct — Coverage: 0.0% | Lines: 1 | Complexity: 1 Stewart\Runtime\Dispatch\DispatchSource::attach — Coverage: 0.0% | Lines: 1 | Complexity: 1 Stewart\Runtime\Dispatch\EntityFilterIndex::__construct — Coverage: 100.0% | Lines: 1 | Complexity: 1 Stewart\Runtime\Dispatch\IndexedSelector::__construct — Coverage: 100.0% | Lines: 1 | Complexity: 1 Stewart\Runtime\Dispatch\LocalDispatcher::dispatchStateChange — Coverage: 100.0% | Lines: 1 | Complexity: 1 Stewart\Runtime\Dispatch\LocalDispatcher::dispatchEvent — Coverage: 100.0% | Lines: 1 | Complexity: 1 Stewart\Runtime\Dispatch\LocalDispatcher::dispatchTopic — Coverage: 100.0% | Lines: 1 | Complexity: 1 Stewart\Runtime\Dispatch\LocalDispatcher::dispatchMqttMessage — Coverage: 0.0% | Lines: 1 | Complexity: 1 Stewart\Runtime\Dispatch\LocalDispatcher::dispatchTrigger — Coverage: 100.0% | Lines: 1 | Complexity: 1 Stewart\Runtime\Dispatch\LocalDispatcher::countFor — Coverage: 100.0% | Lines: 1 | Complexity: 1 Stewart\Runtime\Dispatch\LocalDispatcher::listQueuesOf — Coverage: 100.0% | Lines: 1 | Complexity: 1 Stewart\Runtime\Dispatch\LocalSubscription::__construct — Coverage: 100.0% | Lines: 1 | Complexity: 1 Stewart\Runtime\Dispatch\LocalSubscription::isActive — Coverage: 100.0% | Lines: 1 | Complexity: 1 Stewart\Runtime\Dispatch\LocalSubscription::getId — Coverage: 100.0% | Lines: 1 | Complexity: 1 Stewart\Runtime\Dispatch\QueuedWork::__construct — Coverage: 0.0% | Lines: 1 | Complexity: 1 Stewart\Runtime\Dispatch\QueuedWork::forDroppableEvent — Coverage: 0.0% | Lines: 1 | Complexity: 1 Stewart\Runtime\Dispatch\QueuedWork::forStreamEmission — Coverage: 0.0% | Lines: 1 | Complexity: 1 Stewart\Runtime\Dispatch\QueuedWork::withEvent — Coverage: 0.0% | Lines: 1 | Complexity: 1 Stewart\Runtime\Dispatch\QueuedWork::isDroppable — Coverage: 0.0% | Lines: 1 | Complexity: 1 Stewart\Runtime\Dispatch\RegisteredSubscription::__construct — Coverage: 100.0% | Lines: 1 | Complexity: 1 Stewart\Runtime\Dispatch\RegisteredSubscription::describeMatch — Coverage: 0.0% | Lines: 1 | Complexity: 1 Stewart\Runtime\Dispatch\SelectorIndex::buildCacheKey — Coverage: 100.0% | Lines: 1 | Complexity: 1 Stewart\Runtime\Dispatch\SubscriptionQueue::__construct — Coverage: 100.0% | Lines: 1 | Complexity: 1 Stewart\Runtime\Dispatch\SubscriptionQueue::push — Coverage: 100.0% | Lines: 1 | Complexity: 1

Sorted by descending CRAP index.

Method CRAP Coverage
Stewart\Runtime\Dispatch\LocalDispatcher::register9100.0%
Stewart\Runtime\Dispatch\SelectorIndex::findMatching6.0292.3%
Stewart\Runtime\Dispatch\QueuedWork::discard60.0%
Stewart\Runtime\Dispatch\QueuedWork::__invoke60.0%
Stewart\Runtime\Dispatch\SubscriptionQueue::findOldestSupersededIndex6100.0%
Stewart\Runtime\Dispatch\SubscriptionQueue::drain5100.0%
Stewart\Runtime\Dispatch\SubscriptionQueue::cancel4.3272.7%
Stewart\Runtime\Dispatch\SubscriptionQueue::pushWithin4.1081.8%
Stewart\Runtime\Dispatch\EntityFilterIndex::findMatching4100.0%
Stewart\Runtime\Dispatch\LocalDispatcher::dispatchStateChanges4100.0%
Stewart\Runtime\Dispatch\LocalDispatcher::dispatchExposedCommand4100.0%
Stewart\Runtime\Dispatch\LocalDispatcher::deliver4100.0%
Stewart\Runtime\Dispatch\LocalDispatcher::listStateChangeQueuesMatching4100.0%
Stewart\Runtime\Dispatch\SelectorIndex::remove4100.0%
Stewart\Runtime\Dispatch\SubscriptionQueue::dropSupersededStateChange4100.0%
Stewart\Runtime\Dispatch\SubscriptionQueue::emit3.0483.3%
Stewart\Runtime\Dispatch\SubscriptionQueue::discardPendingWork3.0287.5%
Stewart\Runtime\Dispatch\EntityFilterIndex::matchFilters3100.0%
Stewart\Runtime\Dispatch\LocalDispatcher::dispatchConnection3100.0%
Stewart\Runtime\Dispatch\SubscriptionQueue::startDrainingIfPending3100.0%
Stewart\Runtime\Dispatch\SubscriptionQueue::dropOnOverflow3100.0%
Stewart\Runtime\Dispatch\SubscriptionQueue::dropOldestEvent3100.0%
Stewart\Runtime\Dispatch\SubscriptionQueue::runQueuedWork3100.0%
Stewart\Runtime\Dispatch\LocalDispatcher::cancelAll2.5050.0%
Stewart\Runtime\Dispatch\DispatchSource::__construct20.0%
Stewart\Runtime\Dispatch\DispatchSource::attach20.0%
Stewart\Runtime\Dispatch\LocalDispatcher::startDrainingQueuesOf2100.0%
Stewart\Runtime\Dispatch\LocalDispatcher::discardPendingWorkOf2100.0%
Stewart\Runtime\Dispatch\LocalDispatcher::dispatchMqttMessage20.0%
Stewart\Runtime\Dispatch\LocalDispatcher::cancel2100.0%
Stewart\Runtime\Dispatch\LocalDispatcher::cancelSubscriptionsOf2100.0%
Stewart\Runtime\Dispatch\LocalSubscription::unsubscribe2100.0%
Stewart\Runtime\Dispatch\QueuedWork::__construct20.0%
Stewart\Runtime\Dispatch\QueuedWork::forDroppableEvent20.0%
Stewart\Runtime\Dispatch\QueuedWork::forStreamEmission20.0%
Stewart\Runtime\Dispatch\QueuedWork::withEvent20.0%
Stewart\Runtime\Dispatch\QueuedWork::isDroppable20.0%
Stewart\Runtime\Dispatch\RegisteredSubscription::describeMatch20.0%
Stewart\Runtime\Dispatch\SelectorIndex::add2100.0%
Stewart\Runtime\Dispatch\SubscriptionQueue::pushBurst2100.0%
Stewart\Runtime\Dispatch\SubscriptionQueue::enqueue2100.0%
Stewart\Runtime\Dispatch\SubscriptionQueue::startDraining2100.0%
Stewart\Runtime\Dispatch\EntityFilterIndex::__construct1100.0%
Stewart\Runtime\Dispatch\EntityFilterIndex::add1100.0%
Stewart\Runtime\Dispatch\EntityFilterIndex::remove1100.0%
Stewart\Runtime\Dispatch\IndexedSelector::__construct1100.0%
Stewart\Runtime\Dispatch\LocalDispatcher::__construct1100.0%
Stewart\Runtime\Dispatch\LocalDispatcher::dispatchStateChange1100.0%
Stewart\Runtime\Dispatch\LocalDispatcher::dispatchEvent1100.0%
Stewart\Runtime\Dispatch\LocalDispatcher::dispatchTopic1100.0%
Stewart\Runtime\Dispatch\LocalDispatcher::dispatchTrigger1100.0%
Stewart\Runtime\Dispatch\LocalDispatcher::countFor1100.0%
Stewart\Runtime\Dispatch\LocalDispatcher::refusedSubscription1100.0%
Stewart\Runtime\Dispatch\LocalDispatcher::listQueuesOf1100.0%
Stewart\Runtime\Dispatch\LocalSubscription::__construct1100.0%
Stewart\Runtime\Dispatch\LocalSubscription::isActive1100.0%
Stewart\Runtime\Dispatch\LocalSubscription::getId1100.0%
Stewart\Runtime\Dispatch\RegisteredSubscription::__construct1100.0%
Stewart\Runtime\Dispatch\SelectorIndex::getRoutingStats1100.0%
Stewart\Runtime\Dispatch\SelectorIndex::buildCacheKey1100.0%
Stewart\Runtime\Dispatch\SubscriptionQueue::__construct1100.0%
Stewart\Runtime\Dispatch\SubscriptionQueue::push1100.0%
Stewart\Runtime\Dispatch\SubscriptionQueue::recordOverflowDrop1100.0%