mzcv 0.2.0

Handle controlled vocanulaires (CVs) and ontologies, both statically and dynamically
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Parse all Obo files to test the parser

use mzcv::OboOntology;

#[ignore = "Only run when interested in extending the support of the Obo parser (example files are not included)"]
#[test]
fn test_obo_files() {
    for file in std::fs::read_dir("data").unwrap() {
        let file = file.unwrap();
        if file
            .path()
            .extension()
            .is_some_and(|e| e.eq_ignore_ascii_case("obo"))
        {
            let _obo = OboOntology::from_file(file.path()).unwrap();
        }
    }
}