mirror of
https://github.com/logos-blockchain/logos-blockchain-testing.git
synced 2026-04-13 14:43:13 +00:00
16 lines
573 B
Rust
16 lines
573 B
Rust
|
|
use testing_framework_core::scenario::ScenarioBuilder;
|
||
|
|
|
||
|
|
use crate::{RedisStreamsEnv, RedisStreamsTopology};
|
||
|
|
|
||
|
|
pub type RedisStreamsScenarioBuilder = ScenarioBuilder<RedisStreamsEnv>;
|
||
|
|
|
||
|
|
pub trait RedisStreamsBuilderExt: Sized {
|
||
|
|
fn deployment_with(f: impl FnOnce(RedisStreamsTopology) -> RedisStreamsTopology) -> Self;
|
||
|
|
}
|
||
|
|
|
||
|
|
impl RedisStreamsBuilderExt for RedisStreamsScenarioBuilder {
|
||
|
|
fn deployment_with(f: impl FnOnce(RedisStreamsTopology) -> RedisStreamsTopology) -> Self {
|
||
|
|
RedisStreamsScenarioBuilder::with_deployment(f(RedisStreamsTopology::new(3)))
|
||
|
|
}
|
||
|
|
}
|