mirror of
https://github.com/pezkuwichain/revive-differential-tests.git
synced 2026-04-29 15:57:59 +00:00
95d2afde05
Signed-off-by: Cyrill Leutwiler <bigcyrill@hotmail.com>
35 lines
811 B
Rust
35 lines
811 B
Rust
//! The revive differential testing core library.
|
|
//!
|
|
//! This crate defines the testing configuration and
|
|
//! provides a helper utilty to execute tests.
|
|
|
|
use revive_dt_compiler::{SolidityCompiler, solc};
|
|
use revive_dt_node::geth;
|
|
use revive_dt_node_interaction::EthereumNode;
|
|
|
|
pub mod driver;
|
|
|
|
/// One platform can be tested differentially against another.
|
|
///
|
|
/// For this we need a blockchain node implementation and a compiler.
|
|
pub trait Platform {
|
|
type Blockchain: EthereumNode;
|
|
type Compiler: SolidityCompiler;
|
|
}
|
|
|
|
#[derive(Default)]
|
|
pub struct Geth;
|
|
|
|
impl Platform for Geth {
|
|
type Blockchain = geth::Instance;
|
|
type Compiler = solc::Solc;
|
|
}
|
|
|
|
#[derive(Default)]
|
|
pub struct Kitchensink;
|
|
|
|
impl Platform for Kitchensink {
|
|
type Blockchain = geth::Instance;
|
|
type Compiler = solc::Solc;
|
|
}
|