mirror of
https://github.com/logos-blockchain/logos-blockchain-testing.git
synced 2026-08-08 15:53:14 +00:00
16 lines
482 B
Rust
16 lines
482 B
Rust
use testing_framework_core::scenario::ScenarioBuilder;
|
|
|
|
use crate::{QueueEnv, QueueTopology};
|
|
|
|
pub type QueueScenarioBuilder = ScenarioBuilder<QueueEnv>;
|
|
|
|
pub trait QueueBuilderExt: Sized {
|
|
fn deployment_with(f: impl FnOnce(QueueTopology) -> QueueTopology) -> Self;
|
|
}
|
|
|
|
impl QueueBuilderExt for QueueScenarioBuilder {
|
|
fn deployment_with(f: impl FnOnce(QueueTopology) -> QueueTopology) -> Self {
|
|
QueueScenarioBuilder::with_deployment(f(QueueTopology::new(3)))
|
|
}
|
|
}
|