pub trait Case:
Debug
+ Sync
+ Sized {
// Required methods
fn load(path: &Path) -> Result<Self, Error>;
fn run(&self) -> Result<(), Error>;
// Provided method
fn description(&self) -> String { ... }
}
Expand description
A single test case, capable of loading a JSON description of itself and running it.
See https://ethereum-tests.readthedocs.io/ for test specs.
Required Methods§
Provided Methods§
Sourcefn description(&self) -> String
fn description(&self) -> String
A description of the test.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.