(normalizedPercent: number, msg: string)
| 518 | } |
| 519 | |
| 520 | function validatePercent(normalizedPercent: number, msg: string): boolean { |
| 521 | if (normalizedPercent >= 0 && normalizedPercent < 1 - 1e-5) { // Avoid division error. |
| 522 | return true; |
| 523 | } |
| 524 | if (__DEV__) { |
| 525 | error(`${msg} must be >= 0 and < 1, rather than ${normalizedPercent} .`); |
| 526 | } |
| 527 | return false; |
| 528 | } |
| 529 | |
| 530 | each(breakOptionList, brkOption => { |
| 531 | if (!brkOption || brkOption.start == null || brkOption.end == null) { |
no test coverage detected
searching dependent graphs…