Conditionally compile ethcore public test helpers (#8743)

* Mark test helpers and test-only specs as cfg(test)

* Use test-probe to conditionally compile test helpers

* Remove test probe and directly use features tag
This commit is contained in:
Wei Tang
2018-06-04 21:58:44 +08:00
committed by Afri Schoedon
parent 8057e8df43
commit e2a90ce159
6 changed files with 48 additions and 25 deletions

View File

@@ -20,16 +20,20 @@ mod ancient_import;
mod client;
mod config;
mod error;
#[cfg(any(test, feature="test-helpers"))]
mod evm_test_client;
mod io_message;
#[cfg(any(test, feature="test-helpers"))]
mod test_client;
mod trace;
pub use self::client::*;
pub use self::config::{Mode, ClientConfig, DatabaseCompactionProfile, BlockChainConfig, VMType};
pub use self::error::Error;
#[cfg(any(test, feature="test-helpers"))]
pub use self::evm_test_client::{EvmTestClient, EvmTestError, TransactResult};
pub use self::io_message::ClientIoMessage;
#[cfg(any(test, feature="test-helpers"))]
pub use self::test_client::{TestBlockChainClient, EachBlockWith};
pub use self::chain_notify::{ChainNotify, ChainRoute, ChainRouteType, ChainMessageType};
pub use self::traits::{