mirror of
https://github.com/pezkuwichain/revive-differential-tests.git
synced 2026-04-25 18:37:58 +00:00
a9970eb2bb
* Add support for wrapper types * Move `FilesWithExtensionIterator` to `core::common` * Remove unneeded use of two `HashMap`s * Make metadata structs more typed * Impl new_from for wrapper types * Implement the new input handling logic * Fix edge-case in input handling * Ignore macro doc comment tests * Correct comment * Fix edge-case in deployment order
19 lines
516 B
Rust
19 lines
516 B
Rust
use serde::Deserialize;
|
|
|
|
use crate::{define_wrapper_type, input::Input, mode::Mode};
|
|
|
|
#[derive(Debug, Default, Deserialize, Clone, Eq, PartialEq)]
|
|
pub struct Case {
|
|
pub name: Option<String>,
|
|
pub comment: Option<String>,
|
|
pub modes: Option<Vec<Mode>>,
|
|
pub inputs: Vec<Input>,
|
|
pub group: Option<String>,
|
|
}
|
|
|
|
define_wrapper_type!(
|
|
/// A wrapper type for the index of test cases found in metadata file.
|
|
#[derive(Clone, Copy, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
|
CaseIdx(usize);
|
|
);
|