cargo-allow 0.1.11

Source-tree exception ledger and policy scanner for Rust repositories.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use super::parse_worklist_kind_filter;

#[test]
fn parse_worklist_kind_filter_call_presence_observer() {
    assert_eq!(parse_worklist_kind_filter("panic"), Ok("panic".to_string()));
    assert_eq!(
        parse_worklist_kind_filter("workflow"),
        Ok("workflow".to_string())
    );
    assert_eq!(
        parse_worklist_kind_filter("unknown_kind"),
        Err("unknown worklist kind `unknown_kind`".to_string())
    );
}