fs-librarian 0.3.1

Librarian runs pre-configured commands against a group of files that match a set of filters
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use super::*;
use std::collections::HashSet;
use std::sync::mpsc::channel;

#[test]
fn test_unsupported_os() {
    let paths: HashSet<String> = HashSet::new();
    let (on_event_sender, _) = channel();
    match Notify::new(&None, &paths, on_event_sender) {
        Ok(_) => panic!(),
        Err(e) => assert_eq!(
            e.get_message(),
            "Directory watching is currently not supported in this OS"
        ),
    }
}