summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJohn Turner <jturner.usa@gmail.com>2025-10-29 20:06:59 +0000
committerJohn Turner <jturner.usa@gmail.com>2025-10-29 20:06:59 +0000
commit72b6774e2b43edf4228df2d5a7af20c041e6745c (patch)
tree32ecc67a4349a6d08729062f2127083b8b210b58 /tests
parent8937e096a4b7eba649817d12d23d3e369a4a4f1d (diff)
downloadgentoo-utils-72b6774e2b43edf4228df2d5a7af20c041e6745c.tar.gz
impl Repo and md5-cache reading
Diffstat (limited to 'tests')
-rw-r--r--tests/repo.rs10
1 files changed, 10 insertions, 0 deletions
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()) {}
+ }
+}