All files / app/codeCharta/ui/ribbonBar/edgeSettingsPanel/selectors amountOfBuildingsWithSelectedEdgeMetric.selector.ts

100% Statements 5/5
75% Branches 6/8
100% Functions 1/1
100% Lines 5/5

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 103x 3x 3x   3x     1x    
import { createSelector } from "@ngrx/store"
import { metricDataSelector } from "../../../../state/selectors/accumulatedData/metricData/metricData.selector"
import { edgeMetricSelector } from "../../../../state/store/dynamicSettings/edgeMetric/edgeMetric.selector"
 
export const amountOfBuildingsWithSelectedEdgeMetricSelector = createSelector(
    metricDataSelector,
    edgeMetricSelector,
    (metricData, edgeMetric) => metricData.nodeEdgeMetricsMap.get(edgeMetric)?.size ?? 0
)