mirror of
https://github.com/starship/starship.git
synced 2025-03-04 10:12:42 +01:00
fmt
This commit is contained in:
parent
ff49237458
commit
84c8a5b363
@ -108,9 +108,9 @@ mod tests {
|
||||
expected_value: None,
|
||||
style: "",
|
||||
};
|
||||
assert_eq!(style.should_apply(&context), false);
|
||||
assert!(!style.should_apply(&context));
|
||||
context.env.insert("test", String::default());
|
||||
assert_eq!(style.should_apply(&context), true);
|
||||
assert!(style.should_apply(&context));
|
||||
}
|
||||
|
||||
#[test]
|
||||
@ -123,11 +123,11 @@ mod tests {
|
||||
style: "",
|
||||
};
|
||||
|
||||
assert_eq!(style.should_apply(&context), false);
|
||||
assert!(!style.should_apply(&context));
|
||||
context.env.insert("test", String::from("not_expected"));
|
||||
assert_eq!(style.should_apply(&context), false);
|
||||
assert!(!style.should_apply(&context));
|
||||
context.env.insert("test", String::from("expected"));
|
||||
assert_eq!(style.should_apply(&context), true);
|
||||
assert!(style.should_apply(&context));
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
@ -1,9 +1,9 @@
|
||||
#[cfg(not(target_os = "windows"))]
|
||||
use crate::conditional_style::get_conditional_style;
|
||||
use super::utils::directory_nix as directory_utils;
|
||||
#[cfg(target_os = "windows")]
|
||||
use super::utils::directory_win as directory_utils;
|
||||
use super::utils::path::PathExt as SPathExt;
|
||||
use crate::conditional_style::get_conditional_style;
|
||||
use indexmap::IndexMap;
|
||||
use path_slash::{PathBufExt, PathExt};
|
||||
use std::iter::FromIterator;
|
||||
|
Loading…
Reference in New Issue
Block a user