Trait forge::Test

source ·
pub trait Test: Send + Sync {
    // Required method
    fn name(&self) -> &'static str;

    // Provided methods
    fn ignored(&self) -> bool { ... }
    fn should_fail(&self) -> ShouldFail { ... }
}
Expand description

Represents a Test in Forge

This is meant to be a super trait of the other test interfaces.

Required Methods§

source

fn name(&self) -> &'static str

Returns the name of the Test

Provided Methods§

source

fn ignored(&self) -> bool

Indicates if the Test should be ignored

source

fn should_fail(&self) -> ShouldFail

Indicates if the Test should fail

Implementations on Foreign Types§

source§

impl<T: Test + ?Sized> Test for &T

source§

fn name(&self) -> &'static str

source§

fn ignored(&self) -> bool

source§

fn should_fail(&self) -> ShouldFail

Implementors§

impl Test for ChildVaspAccountRole

impl Test for GetEventsWithProofs

impl Test for CreateAccountEvent

impl Test for ParentVaspAccountRole

impl Test for PeerToPeerWithEvents

impl Test for CurrencyInfo

impl Test for OldMetadata

impl Test for GetAccountByVersion

impl Test for ExpiredTransaction

impl Test for GetResourcesTest

impl Test for BlockMetadata

impl Test for UpgradeDiemVersion

impl Test for AccoutNotFound

impl Test for PreburnAndBurnEvents

impl Test for CancleBurnEvent

impl Test for NoUnknownEvents

impl Test for MalformedScript

impl Test for EventFetcher

impl Test for ReplayTooling

impl Test for VerifyingSubmit

impl Test for LaunchFullnode

impl Test for PerformanceBenchmark