#actix #tokio #async #storm #mocksource

tempest-source-mock

Tempest source implementation of a Mock Queue

2 releases

0.1.1 Sep 7, 2019
0.1.0 Aug 28, 2019

#697 in Testing


Used in tempest

MIT license

16KB
293 lines

Tempest Source for Mock Queues

This source implements a basic queue for mocking message polling. Most tempest topology tests use this Source

Install

Cargo.toml

[dependencies]
tempest-source-mock = "0.1.0"

Usage

use tempest_source_mock::prelude::*;

// create a type alias to the MockSourceBuilder
type Source = MockSourceBuilder;

// configure a topology with this source
struct MyTopology {}
impl Topology<Source> for MyTopology {
    // implementation code here
}

Dependencies

~1.8–2.7MB
~58K SLoC