From 72b6774e2b43edf4228df2d5a7af20c041e6745c Mon Sep 17 00:00:00 2001 From: John Turner Date: Wed, 29 Oct 2025 20:06:59 +0000 Subject: impl Repo and md5-cache reading --- tests/repo.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 tests/repo.rs (limited to 'tests') diff --git a/tests/repo.rs b/tests/repo.rs new file mode 100644 index 0000000..77a29b2 --- /dev/null +++ b/tests/repo.rs @@ -0,0 +1,10 @@ +use gentoo_utils::ebuild::repo::Repo; + +#[test] +fn test_read_repo() { + let repo = Repo::new("/var/db/repos/gentoo"); + + for category in repo.categories().unwrap().map(|cat| cat.unwrap()) { + for _ in category.ebuilds().unwrap().map(|ebuild| ebuild.unwrap()) {} + } +} -- cgit v1.2.3