lighthouse/tests/ef_tests/src/lib.rs

30 lines
699 B
Rust
Raw Normal View History

2019-05-13 12:10:23 +00:00
use error::Error;
use ethereum_types::{U128, U256};
2019-05-13 07:56:46 +00:00
use serde_derive::Deserialize;
2019-05-13 12:10:23 +00:00
use ssz::Decode;
use std::fmt::Debug;
2019-05-15 01:27:22 +00:00
use types::EthSpec;
2019-05-13 12:10:23 +00:00
2019-05-15 01:15:34 +00:00
pub use crate::case_result::*;
2019-05-15 01:17:32 +00:00
pub use crate::cases::*;
2019-05-15 01:15:34 +00:00
pub use crate::doc::*;
pub use crate::doc_header::*;
2019-05-14 00:01:20 +00:00
pub use crate::error::*;
2019-05-14 23:50:05 +00:00
pub use crate::eth_specs::*;
2019-05-15 01:12:49 +00:00
pub use yaml_decode::YamlDecode;
2019-05-13 23:36:25 +00:00
2019-05-15 01:15:34 +00:00
mod case_result;
2019-05-15 01:17:32 +00:00
mod cases;
2019-05-15 01:15:34 +00:00
mod doc;
mod doc_header;
2019-05-13 12:10:23 +00:00
mod error;
2019-05-14 23:50:05 +00:00
mod eth_specs;
2019-05-15 01:12:49 +00:00
mod yaml_decode;
2019-05-15 01:27:22 +00:00
/// Defined where an object can return the results of some test(s) adhering to the Ethereum
/// Foundation testing format.
pub trait EfTest {
/// Returns the results of executing one or more tests.
fn test_results<E: EthSpec>(&self) -> Vec<CaseResult>;
}