Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Commit

Permalink
keep skip_test_diffculty and skip_test_balance_overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ChihChengLiang committed Sep 28, 2023
1 parent 55077ce commit c49a726
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions testool/src/statetest/executor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,21 @@ pub enum StateTestError {
SkipTestMaxSteps(usize),
#[error("SkipTestSelfDestruct")]
SkipTestSelfDestruct,
#[error("SkipTestDifficulty")]
SkipTestDifficulty,
#[error("SkipTestBalanceOverflow")]
SkipTestBalanceOverflow,
#[error("Exception(expected:{expected:?}, found:{found:?})")]
Exception { expected: bool, found: String },
}

impl StateTestError {
pub fn is_skip(&self) -> bool {
// Avoid lint `variant is never constructed`
// We plan to add runtime-feature set in the future to include these skipping options
let _ = StateTestError::SkipTestDifficulty;
let _ = StateTestError::SkipTestBalanceOverflow;

matches!(
self,
StateTestError::SkipTestMaxSteps(_)
Expand Down

0 comments on commit c49a726

Please sign in to comment.