(path)
| 405 | } |
| 406 | |
| 407 | _readFile(path) { |
| 408 | return new Promise((resolve, reject) => { |
| 409 | if (!this._shouldProcessFile(path)) reject(); |
| 410 | |
| 411 | fs.readFile(path, 'utf8', function(e, string) { |
| 412 | if (e) reject(); |
| 413 | resolve(string); |
| 414 | }); |
| 415 | }); |
| 416 | } |
| 417 | |
| 418 | /** |
| 419 | * Checks if path is not present in `exclude` list. |
no test coverage detected