(paths: string[])
| 405 | } |
| 406 | |
| 407 | function joinPaths(paths: string[]): string { |
| 408 | if (paths.length === 0) { |
| 409 | return MockHomePath; |
| 410 | } |
| 411 | let currentPath = normalizeMockPath(paths[0]); |
| 412 | for (const part of paths.slice(1)) { |
| 413 | currentPath = normalizeMockPath(part, currentPath); |
| 414 | } |
| 415 | return currentPath; |
| 416 | } |
| 417 | |
| 418 | function getReadRange(data: FileData, size: number): { offset: number; end: number } { |
| 419 | const offset = Math.max(data?.at?.offset ?? 0, 0); |
no test coverage detected