(path: string)
| 12 | } |
| 13 | |
| 14 | function assertPosixPath(path: string): void { |
| 15 | const errMsg = (msg: string) => `Not a posix path: ${msg}` |
| 16 | assert(path !== null, errMsg('null')) |
| 17 | assert(typeof path === 'string', errMsg(`typeof path === ${JSON.stringify(typeof path)}`)) |
| 18 | assert(path !== '', errMsg('(empty string)')) |
| 19 | assert(path) |
| 20 | assert(!path.includes('\\'), errMsg(path)) |
| 21 | } |
no test coverage detected
searching dependent graphs…