-
-
Notifications
You must be signed in to change notification settings - Fork 128
Add gio::FileMonitor subclass #1725
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
8832317
to
1eeecbb
Compare
gio/tests/file_monitor.rs
Outdated
@@ -0,0 +1,162 @@ | |||
// Take a look at the license at the top of the repository in the LICENSE file. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here and elsewhere, why do you provide these tests as external integration tests instead of just as part of the implementation? The latter is faster compilation-wise
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because in #1676, tests for File
and for FileEnumerator
share some test utilities... Do you have an idea to do it within unit tests ?
Anyway tests for FileMonitor
and for Vfs
does not share test utilities so I'll move them as unit tests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could add a src/test_utils.rs
module or so that is only included with #[cfg(test)]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will do for other types (File
, FileEnumerator
)
99e752d
to
19dca51
Compare
Also looks good to me except for the two open discussions |
49acacd
to
e361652
Compare
Signed-off-by: fbrouille <fbrouille@users.noreply.github.com>
e361652
to
a34c1c4
Compare
Allow custom implementation of gio::FileMonitor