Cargo fmt

This commit is contained in:
itiB
2022-04-06 01:55:19 +09:00
parent 52bc918cfb
commit 04c0e6ae07

View File

@@ -127,12 +127,14 @@ mod tests {
fn rule_level_level_error_file() -> Result<(), String> {
let level_tuning_config_path = "./test_files/config/level_tuning_error2.txt";
let res = LevelTuning::run(level_tuning_config_path);
let expected = Result::Err("level tuning file's level must in informational, low, medium, high, critical".to_string());
let expected = Result::Err(
"level tuning file's level must in informational, low, medium, high, critical"
.to_string(),
);
assert_eq!(res, expected);
Ok(())
}
// TODO: make test option for read ./test_files/rules/ dir.
// #[test]
// fn test_detect_mutiple_regex_and() {