(contract, sourceRoot)
| 40 | } |
| 41 | |
| 42 | function contractOwnerMatchesRoot(contract, sourceRoot) { |
| 43 | return String(contract.owner ?? '') |
| 44 | .split(';') |
| 45 | .map(entry => entry.trim()) |
| 46 | .filter(Boolean) |
| 47 | .some(entry => ( |
| 48 | entry === sourceRoot |
| 49 | || entry.startsWith(`${sourceRoot}/`) |
| 50 | || sourceRoot.startsWith(`${entry}/`) |
| 51 | )); |
| 52 | } |
| 53 | |
| 54 | function writeText(filePath, content) { |
| 55 | fs.mkdirSync(path.dirname(filePath), { recursive: true }); |
no test coverage detected