Skip to content

Commit 062652c

Browse files
committed
docs(test): Expand 'install' documentation
1 parent 64a62ff commit 062652c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

crates/cargo-test-support/src/install.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//! Helpers for testing `cargo install`
2+
13
use std::env::consts::EXE_SUFFIX;
24
use std::path::Path;
35

@@ -23,6 +25,7 @@ fn check_has_installed_exe<P: AsRef<Path>>(path: P, name: &'static str) -> bool
2325
path.as_ref().join("bin").join(exe(name)).is_file()
2426
}
2527

28+
/// `$name$EXE`
2629
pub fn exe(name: &str) -> String {
2730
format!("{}{}", name, EXE_SUFFIX)
2831
}

0 commit comments

Comments
 (0)