( score: number, markerType: MarkerShape = 'circle', )
| 61 | }; |
| 62 | |
| 63 | export function scoreMarker( |
| 64 | score: number, |
| 65 | markerType: MarkerShape = 'circle', |
| 66 | ): string { |
| 67 | if (score >= SCORE_COLOR_RANGE.GREEN_MIN) { |
| 68 | return MARKERS[markerType].green; |
| 69 | } |
| 70 | if (score >= SCORE_COLOR_RANGE.YELLOW_MIN) { |
| 71 | return MARKERS[markerType].yellow; |
| 72 | } |
| 73 | return MARKERS[markerType].red; |
| 74 | } |
| 75 | |
| 76 | export function getDiffMarker(diff: number): string { |
| 77 | if (diff > 0) { |
no outgoing calls
no test coverage detected