()
| 66 | const content = options.content ?? ""; |
| 67 | return { |
| 68 | async stat() { |
| 69 | if (options.statError) throw options.statError; |
| 70 | return { |
| 71 | size: options.size ?? bytes(content).byteLength, |
| 72 | mtime: 1, |
| 73 | mode: options.mode, |
| 74 | }; |
| 75 | }, |
| 76 | async readAll() { |
| 77 | if (options.readError) throw options.readError; |
| 78 | return bytes(content); |