Struct exonum_testkit::TestKitBuilder [] [src]

pub struct TestKitBuilder { /* fields omitted */ }

Builder for TestKit.

Example

let mut testkit = TestKitBuilder::validator()
    .with_service(MyService)
    .with_validators(4)
    .create();
testkit.create_block();
// Other test code

Methods

impl TestKitBuilder
[src]

[src]

Creates testkit for the validator node.

[src]

Creates testkit for the auditor node.

[src]

Sets the number of validator nodes in the test network.

[src]

Adds a service to the testkit.

[src]

Creates the testkit.

Trait Implementations

impl Debug for TestKitBuilder
[src]

[src]

Formats the value using the given formatter.