Skip to content

Commit

Permalink
Fix test coverage (#303)
Browse files Browse the repository at this point in the history
  • Loading branch information
martinmr committed Apr 27, 2024
1 parent ee57361 commit 1771bd8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -673,6 +673,15 @@ mod test {
Ok(())
}

/// Verifies opening a course library with a path that is not a directory fails.
#[test]
fn library_root_is_not_dir() -> Result<()> {
let file = tempfile::NamedTempFile::new()?;
let result = Trane::new_local(file.path(), file.path());
assert!(result.is_err());
Ok(())
}

/// Verifies that opening a library if the path to the config directory exists but is not a
/// directory.
#[test]
Expand Down

0 comments on commit 1771bd8

Please sign in to comment.