pass test

This commit is contained in:
kazuminn
2021-12-02 00:33:19 +09:00
parent 341a5e4f86
commit 838a935d34
3 changed files with 23 additions and 18 deletions

View File

@@ -266,6 +266,9 @@ impl Detection {
fn test_parse_rule_files() {
let level = "INFO";
let opt_rule_path = Some("./test_files/rules/level_yaml");
let cole = Detection::parse_rule_files(level.to_owned(), opt_rule_path);
let fill_ids = RuleFill {
no_use_rule: HashMap::from([("".to_string(), true)]),
};
let cole = Detection::parse_rule_files(level.to_owned(), opt_rule_path, fill_ids);
assert_eq!(5, cole.len());
}