(line, sep, expected)
| 67 | } |
| 68 | |
| 69 | function splitAndAssert(line, sep, expected) { |
| 70 | const split = line.trim().split(sep) |
| 71 | if (split.length !== 2) { |
| 72 | throw new ParseError( |
| 73 | `Two strings separated by '${expected}'`, |
| 74 | line.toString('utf8') |
| 75 | ) |
| 76 | } |
| 77 | return split |
| 78 | } |
no test coverage detected
searching dependent graphs…