| 4 | import { WindowVaultRegistry, type VaultWatcherLike } from './window-vaults' |
| 5 | |
| 6 | class TestWatcher implements VaultWatcherLike { |
| 7 | root: string | null = null |
| 8 | stopped = false |
| 9 | onEvent: ((ev: VaultChangeEvent) => void) | null = null |
| 10 | |
| 11 | start(root: string, onEvent: (ev: VaultChangeEvent) => void): void { |
| 12 | this.root = root |
| 13 | this.onEvent = onEvent |
| 14 | } |
| 15 | |
| 16 | stop(): void { |
| 17 | this.stopped = true |
| 18 | } |
| 19 | } |
| 20 | |
| 21 | function change(path: string): VaultChangeEvent { |
| 22 | return { |
nothing calls this directly
no outgoing calls
no test coverage detected