Skip to content

Commit d60b028

Browse files
committed
more test here too
1 parent 13a59e8 commit d60b028

File tree

1 file changed

+21
-0
lines changed
  • git-function-history-lib/src

1 file changed

+21
-0
lines changed

git-function-history-lib/src/lib.rs

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -622,4 +622,25 @@ mod tests {
622622
println!("The current directory is {}", path.display());
623623
assert!(output.is_ok());
624624
}
625+
626+
#[test]
627+
fn expensive_tes() {
628+
let now = Utc::now();
629+
let output = get_function_history(
630+
"empty_test",
631+
FileType::None,
632+
Filter::None
633+
);
634+
let after = Utc::now() - now;
635+
println!("time taken: {}", after.num_seconds());
636+
match &output {
637+
Ok(functions) => {
638+
println!("{}", functions);
639+
}
640+
Err(e) => println!("{}", e),
641+
}
642+
let path = std::env::current_dir().unwrap();
643+
println!("The current directory is {}", path.display());
644+
assert!(output.is_ok());
645+
}
625646
}

0 commit comments

Comments
 (0)