Module client

Source
Available on crate feature testing only.
Expand description

Augmented ClientBuilder that can set up an already logged-in user.

Modules§

oauth
Mock client data for the OAuth 2.0 API.

Structs§

MockClientBuilder
An augmented ClientBuilder that also allows for handling session login.

Functions§

mock_matrix_session
A MatrixSession, for unit or integration tests.
mock_prev_session_tokens_with_refresh
Different session tokens than the ones returned by mock_session_tokens_with_refresh().
mock_session_meta
A SessionMeta, for unit or integration tests.
mock_session_tokens
A SessionTokens including only an access token, for unit or integration tests.
mock_session_tokens_with_refresh
A SessionTokens including an access token and a refresh token, for unit or integration tests.