Coverage / src/paths.ts 36.4%
4 of 11 lines run, 1 of 1 functions, 2 of 2 branches · run #22 on main · run missed
| 1 | 0× | // Paths inside a checkout, without VS Code: shared by the watcher and tests. |
| 2 | 1× | |
| 3 | 0× | /** |
| 4 | 0× | * Whether a path relative to a repository root lies inside a `.oxy` store at |
| 5 | 0× | * any depth: this repository's own, or a subrepo's, which oxy writes to |
| 6 | 0× | * while it reports status (so a watcher that refreshed on those writes |
| 7 | 0× | * would refresh forever). |
| 8 | 0× | */ |
| 9 | 6× | export function isInStore(rel: string): boolean { |
| 10 | 6× | return rel.split(/[\\/]/).includes(".oxy"); |
| 11 | 6× | } |