(samplingValue: any)
| 328 | const round = (value: number) => Math.round(value * 10000) / 10000; |
| 329 | |
| 330 | const formatSamplingRateValue = (samplingValue: any) => { |
| 331 | if ( |
| 332 | samplingValue.type === 'sampleRate' || |
| 333 | samplingValue.type === 'minimumSampleRate' |
| 334 | ) { |
| 335 | return `${round(samplingValue.value * 100)}%`; |
| 336 | } |
| 337 | return `* ${round(samplingValue.value)}`; |
| 338 | }; |
| 339 | |
| 340 | const evaluateRuleImpact = (rule: RuleV2) => { |
| 341 | if (getRuleType(rule) === RuleType.BOOST_LOW_VOLUME_PROJECTS) { |
no test coverage detected