(startFraction: number, endFraction: number)
| 54 | } |
| 55 | |
| 56 | function checkFraction(startFraction: number, endFraction: number): void { |
| 57 | assert( |
| 58 | startFraction >= 0 && startFraction <= 1, |
| 59 | () => `Progress fraction must be in range [0, 1], but ` + |
| 60 | `got startFraction ${startFraction}`); |
| 61 | assert( |
| 62 | endFraction >= 0 && endFraction <= 1, |
| 63 | () => `Progress fraction must be in range [0, 1], but ` + |
| 64 | `got endFraction ${endFraction}`); |
| 65 | assert( |
| 66 | endFraction >= startFraction, |
| 67 | () => `startFraction must be no more than endFraction, but ` + |
| 68 | `got startFraction ${startFraction} and endFraction ` + |
| 69 | `${endFraction}`); |
| 70 | } |
| 71 | |
| 72 | return Promise.all(promises.map(registerMonitor)); |
| 73 | } |
no test coverage detected
searching dependent graphs…