add test rule files

This commit is contained in:
kazuminn
2021-12-09 01:29:23 +09:00
parent 360d80b578
commit db3616b56d
16 changed files with 281 additions and 9 deletions

View File

@@ -264,9 +264,9 @@ mod tests {
#[test]
fn test_exclude_rules_file() {
let mut yaml = yaml::ParseYaml::new();
let path = Path::new("test_files/rules/yaml");
let path = Path::new("test_files/rules/");
yaml.read_dir(path.to_path_buf(), &"", &fillter::exclude_ids())
.unwrap();
assert_eq!(yaml.ignorerule_count, 1);
assert_eq!(yaml.ignorerule_count, 10);
}
}