forked from notify-rs/notify
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes notify-rs#636.
- Loading branch information
Showing
4 changed files
with
127 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
notify-debouncer-full/test_cases/sort_events_chronologically.hjson
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
state: { | ||
queues: { | ||
/watch/file-1: { | ||
events: [ | ||
{ kind: "create-any", paths: ["*"], time: 2 } | ||
{ kind: "modify-any", paths: ["*"], time: 3 } | ||
] | ||
} | ||
/watch/file-2: { | ||
events: [ | ||
{ kind: "create-any", paths: ["*"], time: 1 } | ||
{ kind: "modify-any", paths: ["*"], time: 4 } | ||
] | ||
} | ||
} | ||
} | ||
expected: { | ||
queues: { | ||
/watch/file-1: { | ||
events: [ | ||
{ kind: "create-any", paths: ["*"], time: 2 } | ||
{ kind: "modify-any", paths: ["*"], time: 3 } | ||
] | ||
} | ||
/watch/file-2: { | ||
events: [ | ||
{ kind: "create-any", paths: ["*"], time: 1 } | ||
{ kind: "modify-any", paths: ["*"], time: 4 } | ||
] | ||
} | ||
} | ||
events: { | ||
long: [ | ||
{ kind: "create-any", paths: ["/watch/file-2"], time: 1 } | ||
{ kind: "create-any", paths: ["/watch/file-1"], time: 2 } | ||
{ kind: "modify-any", paths: ["/watch/file-1"], time: 3 } | ||
{ kind: "modify-any", paths: ["/watch/file-2"], time: 4 } | ||
] | ||
} | ||
} | ||
} |
42 changes: 42 additions & 0 deletions
42
notify-debouncer-full/test_cases/sort_events_with_reordering.hjson
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
state: { | ||
queues: { | ||
/watch/file-1: { | ||
events: [ | ||
{ kind: "create-any", paths: ["*"], time: 2 } | ||
{ kind: "modify-any", paths: ["*"], time: 3 } | ||
] | ||
} | ||
/watch/file-2: { | ||
events: [ | ||
{ kind: "rename-to", paths: ["*"], time: 4 } | ||
{ kind: "modify-any", paths: ["*"], time: 1 } | ||
] | ||
} | ||
} | ||
} | ||
expected: { | ||
queues: { | ||
/watch/file-1: { | ||
events: [ | ||
{ kind: "create-any", paths: ["*"], time: 2 } | ||
{ kind: "modify-any", paths: ["*"], time: 3 } | ||
] | ||
} | ||
/watch/file-2: { | ||
events: [ | ||
{ kind: "rename-to", paths: ["*"], time: 4 } | ||
{ kind: "modify-any", paths: ["*"], time: 1 } | ||
] | ||
} | ||
} | ||
events: { | ||
long: [ | ||
{ kind: "create-any", paths: ["/watch/file-1"], time: 2 } | ||
{ kind: "modify-any", paths: ["/watch/file-1"], time: 3 } | ||
{ kind: "rename-to", paths: ["/watch/file-2"], time: 4 } | ||
{ kind: "modify-any", paths: ["/watch/file-2"], time: 1 } | ||
] | ||
} | ||
} | ||
} |