mirror of
https://github.com/Llewellynvdm/starship.git
synced 2024-11-28 07:46:28 +00:00
Fix up benchmarks
This commit is contained in:
parent
a0e4172602
commit
35e219e1f6
@ -5,7 +5,7 @@ extern crate test;
|
|||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
use clap::{App, Arg};
|
use clap::{App, Arg};
|
||||||
use starship::{modules, print};
|
use starship::modules;
|
||||||
use test::Bencher;
|
use test::Bencher;
|
||||||
|
|
||||||
// #[bench]
|
// #[bench]
|
||||||
@ -27,7 +27,7 @@ mod tests {
|
|||||||
.get_matches_from(vec!["starship", "0"]);
|
.get_matches_from(vec!["starship", "0"]);
|
||||||
|
|
||||||
let segment = modules::handle("char", &args);
|
let segment = modules::handle("char", &args);
|
||||||
print::stringify_segment(segment)
|
segment.output()
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -39,7 +39,7 @@ mod tests {
|
|||||||
.get_matches_from(vec!["starship", "0"]);
|
.get_matches_from(vec!["starship", "0"]);
|
||||||
|
|
||||||
let segment = modules::handle("dir", &args);
|
let segment = modules::handle("dir", &args);
|
||||||
print::stringify_segment(segment)
|
segment.output()
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -51,7 +51,7 @@ mod tests {
|
|||||||
.get_matches_from(vec!["starship", "0"]);
|
.get_matches_from(vec!["starship", "0"]);
|
||||||
|
|
||||||
let segment = modules::handle("line_break", &args);
|
let segment = modules::handle("line_break", &args);
|
||||||
print::stringify_segment(segment)
|
segment.output()
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -63,7 +63,7 @@ mod tests {
|
|||||||
.get_matches_from(vec!["starship", "0"]);
|
.get_matches_from(vec!["starship", "0"]);
|
||||||
|
|
||||||
let segment = modules::handle("nodejs", &args);
|
let segment = modules::handle("nodejs", &args);
|
||||||
print::stringify_segment(segment)
|
segment.output()
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user