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§
- Mock
Client Builder - 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.