Module test_harness

Module test_harness 

Source
Expand description

Test harness and mocks for the Apollo Router.

Modules§

mocks
Mocks for services the Apollo Router must integrate with.

Structs§

MockedSubgraphs
a list of subgraphs with pregenerated responses
TestHarness
Builder for the part of an Apollo Router that handles GraphQL requests, as a tower::Service.

Functions§

make_fake_batch
Convert a graphql request into a batch of requests

Type Aliases§

HttpService
An HTTP-level service, as would be given to Hyper’s server