diff options
| author | John Turner <jturner.usa@gmail.com> | 2025-10-31 17:22:57 +0000 |
|---|---|---|
| committer | John Turner <jturner.usa@gmail.com> | 2025-10-31 17:22:57 +0000 |
| commit | 6b04125d14503790e6ab388e11f1f9ebe7e7faea (patch) | |
| tree | 1b5fc08ca396addf5d959ba0a097e714d9713420 | |
| parent | 820cb3ba482c6af2324421cc0879910ab8b10edc (diff) | |
| download | gentoo-utils-6b04125d14503790e6ab388e11f1f9ebe7e7faea.tar.gz | |
remove depend test
The repo iteration test also tests depend parsers, so there is no need
to have a dedicated depend parsing test now.
| -rw-r--r-- | tests/depend.rs | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/tests/depend.rs b/tests/depend.rs deleted file mode 100644 index c8add5d..0000000 --- a/tests/depend.rs +++ /dev/null @@ -1,28 +0,0 @@ -use gentoo_utils::{Parseable, atom::Atom, ebuild::Depend}; -use mon::{Parser, eof, input::InputIter, tag, whitespace1}; -use std::fs; - -#[test] -fn parse_md5_cache() { - let md5_cache = "/var/db/repos/gentoo/metadata/md5-cache"; - - for cat in fs::read_dir(md5_cache).unwrap() { - for pkg in fs::read_dir(cat.unwrap().path()).unwrap() { - let metadata = fs::read_to_string(pkg.unwrap().path()).unwrap(); - - for line in metadata.lines() { - if line.starts_with("DEPEND=") { - eprintln!("{line}"); - eprintln!(); - Depend::<Atom>::parser() - .separated_by(whitespace1(), 0..) - .ignore() - .or(eof()) - .preceded_by(tag("DEPEND=")) - .check_finished(InputIter::new(line)) - .unwrap(); - } - } - } - } -} |
