Mark a path as written (so write→write doesn't trigger guard).
(filePath, cwd)
| 60 | |
| 61 | /** Mark a path as written (so write→write doesn't trigger guard). */ |
| 62 | recordWrite(filePath, cwd) { |
| 63 | if (this.disabled) return; |
| 64 | const c = this._canon(filePath, cwd); |
| 65 | if (!c) return; |
| 66 | this.writtenPaths.add(c); |
| 67 | this.readPaths.add(c); // we know its content because we just wrote it |
| 68 | } |
| 69 | |
| 70 | /** |
| 71 | * Check whether a write should be guarded. Returns: |
no test coverage detected