Module testing

Source
Available on crate feature testing only.
Expand description

Testing facilities and helpers for crypto tests

Functionsยง

get_device
Generate default DeviceData for tests
get_other_identity
Generate default other identify for tests
get_own_identity
Generate default own identity for tests
simulate_key_query_response_for_verification
When we want to test identities that are verified, we need to simulate the verification process. This function supports that by simulating what happens when a successful verification dance happens and providing the /keys/query response we would get when that happened.