Skip to content

Commit 2bf5289

Browse files
committed
more benchmarks
1 parent df0d2fd commit 2bf5289

File tree

1 file changed

+4
-1
lines changed
  • git-function-history-lib/src

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,11 +553,14 @@ mod tests {
553553
use super::*;
554554
#[test]
555555
fn found_function() {
556+
let now = Utc::now();
556557
let output = get_function_history(
557558
"empty_test",
558559
FileType::Absolute("src/test_functions.rs".to_string()),
559560
Filter::None,
560561
);
562+
let after = Utc::now() - now;
563+
println!("time taken: {}", after.num_seconds());
561564
match &output {
562565
Ok(functions) => {
563566
println!("{}", functions);
@@ -580,7 +583,7 @@ mod tests {
580583
}
581584

582585
#[test]
583-
fn not_found_function() {
586+
fn not_found() {
584587
let output = get_function_history(
585588
"Not_a_function",
586589
FileType::Absolute("src/test_functions.rs".to_string()),

0 commit comments

Comments
 (0)