gitbutler/crates/gitbutler-watcher/tests/fixtures/emit_needs_rescan_event.hjson
Sebastian Thiel e68b789a32
remove unused methods in FileId map, and revert to what seemed functional.
Previously, roots were always empty and it was unclear what the purpose
of the customization was.

It's probably best to re-add it along with a test maybe.
2024-05-24 16:21:26 +02:00

57 lines
1.4 KiB
Plaintext

{
state: {
queues: {
/watch/file-a: {
events: [
{ kind: "create-any", paths: ["*"], time: 1 }
]
}
/watch/file-b: {
events: [
{ kind: "create-any", paths: ["*"], time: 2 }
]
}
}
cache: {
/watch/file-a: 1
/watch/file-b: 2
}
file_system: {
/watch/file-a: 1
/watch/file-b: 2
/watch/file-c: 3
}
}
events: [
{ kind: "other", flags: ["rescan"], time: 3 }
]
expected: {
queues: {
/watch/file-a: {
events: [
{ kind: "create-any", paths: ["*"], time: 1 }
]
}
/watch/file-b: {
events: [
{ kind: "create-any", paths: ["*"], time: 2 }
]
}
}
rescan_event: { kind: "other", flags: ["rescan"], time: 3 }
cache: {
/watch/file-a: 1
/watch/file-b: 2
/watch/file-c: 3
}
events: {
short: []
long: [
{ kind: "create-any", paths: ["/watch/file-a"], time: 1 }
{ kind: "create-any", paths: ["/watch/file-b"], time: 2 }
{ kind: "other", flags: ["rescan"], time: 3 }
]
}
}
}