Cargo fmt
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user