mirror of
https://github.com/pezkuwichain/revive-differential-tests.git
synced 2026-04-30 15:18:01 +00:00
d6c2535853
Signed-off-by: xermicus <bigcyrill@hotmail.com>
25 lines
547 B
Rust
25 lines
547 B
Rust
use std::collections::BTreeSet;
|
|
|
|
use clap::Parser;
|
|
|
|
use revive_dt_core::arguments::Arguments;
|
|
use revive_dt_format::corpus::Corpus;
|
|
|
|
fn main() -> anyhow::Result<()> {
|
|
env_logger::init();
|
|
|
|
let args = Arguments::try_parse()?;
|
|
|
|
for path in args.corpus.iter().collect::<BTreeSet<_>>() {
|
|
log::trace!("attempting corpus {path:?}");
|
|
let corpus = Corpus::try_from_path(path)?;
|
|
log::info!("found corpus: {corpus:?}");
|
|
|
|
let tests = corpus.enumerate_tests();
|
|
|
|
log::debug!("{tests:?}");
|
|
}
|
|
|
|
Ok(())
|
|
}
|