Add tests for count_repositories

This commit is contained in:
Max Smirnov
2022-08-22 16:12:21 +03:00
parent 7139663544
commit 3ead212fe7
4 changed files with 69 additions and 3 deletions

View File

@ -5,7 +5,7 @@ use std::{fs::{read_dir, ReadDir}, path::Path, result::Result as StdResult, iter
/// so to get the amount of repos, we just have to count everything
/// in `*/*/*` to get the count.
#[instrument]
pub(crate) fn count_repositories<P>(repo_path: P) -> Result<usize>
pub fn count_repositories<P>(repo_path: P) -> Result<usize>
where
P: AsRef<Path> + std::fmt::Debug,
{