(label: string)
| 91 | const pageMatch = /page size of (\d+) bytes/.exec(out); |
| 92 | const pageSize = pageMatch ? Number.parseInt(pageMatch[1]!, 10) : 16384; |
| 93 | const count = (label: string): number => { |
| 94 | const m = new RegExp(`^${label}:\\s+(\\d+)`, 'm').exec(out); |
| 95 | return m ? Number.parseInt(m[1]!, 10) : 0; |
| 96 | }; |
| 97 | const pages = |
| 98 | count('Pages free') + |
| 99 | count('Pages inactive') + |
no test coverage detected