Skip to content

Commit

Permalink
Remove a test for debug only
Browse files Browse the repository at this point in the history
  • Loading branch information
HuakunShen committed May 7, 2024
1 parent c319f3b commit 64068d6
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions devclean/src/predicates/general.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,3 @@ pub fn is_git_repo_clean(path: &Path) -> Result<bool> {
pub fn is_dir_empty(path: &Path) -> bool {
path.read_dir().map_or(true, |mut dir| dir.next().is_none())
}

#[cfg(test)]
mod tests {
use super::*;

#[test]
fn test_is_git_repo_clean() {
let x = is_git_repo_clean(Path::new("/Users/hacker/Dev/projects/tauri-demo"));
// let x = is_git_repo_clean(Path::new("/Users/hacker/Dev/projects/Nowtu"));
println!("{:?}", x);
// assert!(is_git_repo_clean(Path::new("tests/fixtures/git")));
// assert!(!is_git_repo_clean(Path::new("tests/fixtures/git_dirty")));
}
}

0 comments on commit 64068d6

Please sign in to comment.