-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
testing framework - renamed step methods
- Loading branch information
1 parent
0a16a73
commit 6a75d87
Showing
7 changed files
with
92 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
70 changes: 70 additions & 0 deletions
70
framework/scenario/src/facade/scenario_world_steps_deprecated.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
use crate::{facade::ScenarioWorld, scenario::model::*}; | ||
|
||
impl ScenarioWorld { | ||
#[deprecated(since = "0.42.0", note = "Renamed to `sc_call`.")] | ||
pub fn sc_call_step<S>(&mut self, step: S) -> &mut Self | ||
where | ||
S: AsMut<ScCallStep>, | ||
{ | ||
self.sc_call(step) | ||
} | ||
|
||
#[deprecated(since = "0.42.0", note = "Renamed to `sc_query`.")] | ||
pub fn sc_query_step<S>(&mut self, step: S) -> &mut Self | ||
where | ||
S: AsMut<ScQueryStep>, | ||
{ | ||
self.sc_query(step) | ||
} | ||
|
||
#[deprecated(since = "0.42.0", note = "Renamed to `sc_deploy`.")] | ||
pub fn sc_deploy_step<S>(&mut self, step: S) -> &mut Self | ||
where | ||
S: AsMut<ScDeployStep>, | ||
{ | ||
self.sc_deploy(step) | ||
} | ||
|
||
#[deprecated(since = "0.39.0", note = "Renamed, use `set_state_step` instead.")] | ||
pub fn mandos_set_state(&mut self, step: SetStateStep) -> &mut Self { | ||
self.set_state_step(step) | ||
} | ||
|
||
#[deprecated(since = "0.39.0", note = "Renamed, use `sc_call_step` instead.")] | ||
pub fn mandos_sc_call(&mut self, step: ScCallStep) -> &mut Self { | ||
self.sc_call(step) | ||
} | ||
|
||
#[deprecated(since = "0.39.0", note = "Renamed, use `sc_query_step` instead.")] | ||
pub fn mandos_sc_query(&mut self, step: ScQueryStep) -> &mut Self { | ||
self.sc_query(step) | ||
} | ||
|
||
#[deprecated(since = "0.39.0", note = "Renamed, use `sc_deploy_step` instead.")] | ||
pub fn mandos_sc_deploy(&mut self, step: ScDeployStep) -> &mut Self { | ||
self.sc_deploy(step) | ||
} | ||
|
||
#[deprecated(since = "0.39.0", note = "Renamed, use `transfer_step` instead.")] | ||
pub fn mandos_transfer(&mut self, step: TransferStep) -> &mut Self { | ||
self.transfer_step(step) | ||
} | ||
|
||
#[deprecated( | ||
since = "0.39.0", | ||
note = "Renamed, use `validator_reward_step` instead." | ||
)] | ||
pub fn mandos_validator_reward(&mut self, step: ValidatorRewardStep) -> &mut Self { | ||
self.validator_reward_step(step) | ||
} | ||
|
||
#[deprecated(since = "0.39.0", note = "Renamed, use `check_state_step` instead.")] | ||
pub fn mandos_check_state(&mut self, step: CheckStateStep) -> &mut Self { | ||
self.check_state_step(step) | ||
} | ||
|
||
#[deprecated(since = "0.39.0", note = "Renamed, use `dump_state_step` instead.")] | ||
pub fn mandos_dump_state(&mut self) -> &mut Self { | ||
self.dump_state_step() | ||
} | ||
} |