We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 000763c commit 13a59e8Copy full SHA for 13a59e8
git-function-history-lib/src/lib.rs
@@ -548,6 +548,8 @@ impl<T> UwrapToError<T> for Option<T> {
548
549
#[cfg(test)]
550
mod tests {
551
+ use chrono::Utc;
552
+
553
use super::*;
554
#[test]
555
fn found_function() {
@@ -599,6 +601,7 @@ mod tests {
599
601
}
600
602
603
fn test_date() {
604
+ let now = Utc::now();
605
let output = get_function_history(
606
"empty_test",
607
FileType::None,
@@ -607,6 +610,8 @@ mod tests {
610
"19 Aug 2022 23:45:52 +0000".to_owned(),
608
611
),
609
612
);
613
+ let after = Utc::now() - now;
614
+ println!("time taken: {}", after.num_seconds());
615
match &output {
616
Ok(functions) => {
617
println!("{}", functions);
0 commit comments