(t, noCreate)
| 26 | } |
| 27 | |
| 28 | function tmpFile(t, noCreate) { |
| 29 | const str = crypto.randomBytes(Math.ceil(10 / 2)).toString('hex'); |
| 30 | const file = `${t.context.tmp}/${str}`; |
| 31 | if (!noCreate) { |
| 32 | fs.closeSync(fs.openSync(file, 'a')); |
| 33 | } |
| 34 | return file; |
| 35 | } |
| 36 | |
| 37 | |
| 38 | // |
no outgoing calls
no test coverage detected
searching dependent graphs…