Skip to content

Commit

Permalink
tests: minor docstring updates
Browse files Browse the repository at this point in the history
  • Loading branch information
davvid committed Dec 16, 2023
1 parent bc8b74d commit 2f64e98
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1195,7 +1195,7 @@ pub fn display_tree(tree: &Tree, path_str: &str, tree_branches: bool, verbose: u
/// Print a tree if it exists, otherwise print a missing tree
pub fn print_tree(tree: &Tree, tree_branches: bool, verbose: u8, quiet: bool) -> bool {
if let Ok(path) = tree.path_as_ref() {
// Sparse gardens/missing trees are ok -> skip these entries.
// Sparse gardens/missing trees are expected. Skip these entries.
if !std::path::PathBuf::from(&path).exists() {
if !quiet {
eprintln!("{}", display_missing_tree(tree, path, verbose));
Expand Down
4 changes: 2 additions & 2 deletions tests/common/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -278,14 +278,14 @@ impl<'a> BareRepoFixture<'a> {
}

/// Asserts that the path is a Git worktree.
/// Returns a pathbuf for the specified worktree.
/// Returns a PathBuf for the specified worktree.
pub fn worktree_pathbuf(&self, path: &str) -> std::path::PathBuf {
std::path::PathBuf::from(self.worktree(path))
}
}

impl Drop for BareRepoFixture<'_> {
/// Teardown the test repository.
/// Teardown the test repository filesystem data.
fn drop(&mut self) {
teardown_tmp_test_data(&self.root());
}
Expand Down

0 comments on commit 2f64e98

Please sign in to comment.