Struct exonum_testkit::TestKitApi [] [src]

pub struct TestKitApi { /* fields omitted */ }

API encapsulation for the testkit. Allows to execute and synchronously retrieve results for REST-ful endpoints of services.

Methods

impl TestKitApi
[src]

[src]

Returns the mounting point for public APIs. Useful for intricate testing not covered by get* and post* functions.

[src]

Returns the mounting point for private APIs. Useful for intricate testing not covered by get* and post* functions.

[src]

Sends a transaction to the node via ApiSender.

[src]

Gets information from a public endpoint of the node.

[src]

Gets information from a private endpoint of the node.

[src]

Gets an error from a public endpoint of the node.

[src]

Posts a transaction to the service using the public API. The returned value is the result of synchronous transaction processing, which includes running the API shim and Transaction.verify(). Transaction.execute() is not run until the transaction gets to a block via one of create_block*() methods.

[src]

Posts a transaction to the service using the private API. The returned value is the result of synchronous transaction processing, which includes running the API shim and Transaction.verify(). Transaction.execute() is not run until the transaction gets to a block via one of create_block*() methods.

Trait Implementations

impl Debug for TestKitApi
[src]

[src]

Formats the value using the given formatter.