Skip to main content

Crate sofie_testing

Crate sofie_testing 

Source

Structs§

AggregateFixture
FakeDriver
TestApp
TestCaller
TestDatabase
TestPrincipal
TestRequest
TestResponse
TestServer
TestSession
Its value is never printed.

Traits§

AppWiring
FixtureOwner
WorkerWiring

Functions§

assert_boundary
assert_lookup
assert_moves
assert_raised
assert_round_trips
Compared by what each writes, so an app’s value needs neither PartialEq nor Debug.
assert_schema
assert_store
second, in the same state as first, gives its fields to first and is deleted, freeing its unique values.
assert_unique
assert_value
describe
A bound counts characters of text and the value of a number.
drain_failing
Each failed job is retried once its backoff is over, as advance reaches it.
fake
A test build chooses no gateway adapter, so a test that reaches a gateway provides its fake here.
finish_teardown
Called outside a runtime once connections are closed; a drop still running at exit is left to the next test process.
fixture_input
fixture_value
raised
Every E committed, delivered or not; for a test that waits until one is.
run_test_app
The runtime is shut down before the database is dropped, so no app connection holds the drop up.
sent_mails
What the app’s mail jobs sent so far, through the fake transport: drain first.
set_display_zone
Called first by every test in the binary: reading an instant fixes the zone for the whole binary, as for the app’s process.
start
A test whose app needs tables migrates them in app, as the binary does only with SOFIE_MIGRATE=on.
start_with_flags

Attribute Macros§

test_app
One database per test; the crate’s wiring must export MODULES, app and worker.