Modules§
- Mocks useful to reuse across different testing contexts.
- Test data for the matrix-sdk crates.
Macros§
- Initialize a tracing subscriber if the target architecture is not WASM.
- Create a
Raw<AnyMessageLikeEventContent>
from arbitrary JSON. - Create a
Raw<AnyStrippedStateEvent>
from arbitrary JSON. - Create a
Raw<AnySyncStateEvent>
from arbitrary JSON. - Create a
Raw<AnySyncTimelineEvent>
from arbitrary JSON. - Create a
Raw<AnyTimelineEvent>
from arbitrary JSON.
Structs§
- The
SyncResponseBuilder
struct can be used to easily generate valid sync responses for testing. These can be then fed into eitherClient
orRoom
.
Enums§
- Test events that can be added to the ephemeral events.
- Test events that can be added to the global account data.
- Test events that can be added to the presence events.
- Test events that can be added to the room account data.
- Test events that can be added to the state.
- Test events that can be added to the stripped state.
- Embedded sync response files
Statics§
- The default room ID for tests.
Functions§
- Create
m.room.member
events in the given range. - Build a typed Ruma
IncomingResponse
object from a json body. - Get specific API responses for testing
Attribute Macros§
- Attribute to use
wasm_bindgen_test
for wasm32 targets andtokio::test
for everything else with async-support and custom result-types