added unit tests

This commit is contained in:
2026-03-12 17:47:56 +01:00
parent c8fdf0bc23
commit 2b81393fc9
5 changed files with 333 additions and 24 deletions

View File

@@ -14,6 +14,12 @@ pub struct Game {
}
impl Game {
pub fn new(path: impl AsRef<Path>) -> Self {
Self {
path: path.as_ref().to_owned(),
}
}
pub fn export_links(&self) -> Result<Vec<Link>, io::Error> {
let links: Vec<Link> = walk_all_files(&self.path)?
.map(|entry| {