Tidy import structure in ef_tests

This commit is contained in:
Paul Hauner 2019-05-15 11:41:25 +10:00
parent 4cb23dd342
commit 5a361b852a
No known key found for this signature in database
GPG Key ID: D362883A9218FCC6
8 changed files with 23 additions and 14 deletions

View File

@ -1,4 +1,5 @@
use super::*;
use std::fmt::Debug;
#[derive(Debug, PartialEq, Clone)]
pub struct CaseResult {

View File

@ -1,5 +1,6 @@
use super::*;
use crate::yaml_decode::*;
use serde_derive::Deserialize;
use yaml_rust::YamlLoader;
mod ssz_generic;

View File

@ -1,4 +1,9 @@
use super::*;
use crate::case_result::compare_result;
use ethereum_types::{U128, U256};
use serde_derive::Deserialize;
use ssz::Decode;
use std::fmt::Debug;
use types::EthSpec;
#[derive(Debug, Clone, Deserialize)]

View File

@ -1,4 +1,8 @@
use super::*;
use crate::case_result::compare_result;
use serde_derive::Deserialize;
use ssz::Decode;
use std::fmt::Debug;
use tree_hash::TreeHash;
use types::{
Attestation, AttestationData, AttestationDataAndCustodyBit, AttesterSlashing, BeaconBlock,

View File

@ -1,5 +1,10 @@
use super::*;
use crate::yaml_decode::*;
use crate::case_result::CaseResult;
use crate::cases::*;
use crate::doc_header::DocHeader;
use crate::eth_specs::MinimalEthSpec;
use crate::yaml_decode::{extract_yaml_by_key, YamlDecode};
use crate::EfTest;
use serde_derive::Deserialize;
use std::{fs::File, io::prelude::*, path::PathBuf};
use types::{EthSpec, FoundationEthSpec};

View File

@ -1,4 +1,4 @@
use super::*;
use serde_derive::Deserialize;
#[derive(Debug, Deserialize)]
pub struct DocHeader {

View File

@ -1,16 +1,8 @@
use error::Error;
use ethereum_types::{U128, U256};
use serde_derive::Deserialize;
use ssz::Decode;
use std::fmt::Debug;
use types::EthSpec;
pub use crate::case_result::*;
pub use crate::cases::*;
pub use crate::doc::*;
pub use crate::doc_header::*;
pub use crate::error::*;
pub use crate::eth_specs::*;
pub use case_result::CaseResult;
pub use doc::Doc;
pub use error::Error;
pub use yaml_decode::YamlDecode;
mod case_result;

View File

@ -1,4 +1,5 @@
use super::*;
use ethereum_types::{U128, U256};
use types::Fork;
mod utils;