(dirents)
| 132 | } |
| 133 | |
| 134 | function assertDirents(dirents) { |
| 135 | assert.strictEqual(dirents.length, expected.length); |
| 136 | dirents.sort((a, b) => (getDirentPath(a) < getDirentPath(b) ? -1 : 1)); |
| 137 | assert.deepStrictEqual( |
| 138 | dirents.map(common.mustCallAtLeast((dirent) => { |
| 139 | assert(dirent instanceof fs.Dirent); |
| 140 | return getDirentPath(dirent); |
| 141 | })), |
| 142 | expected |
| 143 | ); |
| 144 | } |
| 145 | |
| 146 | function processDirSync(dir) { |
| 147 | const dirents = []; |
searching dependent graphs…