OXYGENHUB

Coverage / src/paths.ts 36.4%

4 of 11 lines run, 1 of 1 functions, 2 of 2 branches · run #23 on main · run missed

10×
// Paths inside a checkout, without VS Code: shared by the watcher and tests.
21×
30×
/**
40×
 * Whether a path relative to a repository root lies inside a `.oxy` store at
50×
 * any depth: this repository's own, or a subrepo's, which oxy writes to
60×
 * while it reports status (so a watcher that refreshed on those writes
70×
 * would refresh forever).
80×
 */
96×
export function isInStore(rel: string): boolean {
106×
  return rel.split(/[\\/]/).includes(".oxy");
116×
}