Skip to main content

Module test_utils

Module test_utils 

Source
Expand description

In-process CloudHome implementation for tests. Records every write keyed by cloud_key so tests can read back exactly what landed, and serves reads from the same map — enough to simulate two devices sharing a cloud bucket.

Available under #[cfg(test)] in this crate itself and to the crates above it that enable the test-utils feature.

Structs§

InMemoryCloudHome
In-memory CloudHome backed by a HashMap. Clone shares one backing store, so clones act as separate devices reading and writing the same cloud bucket, and a test can keep its own handle for direct at-rest assertions while each device owns an exact cloud-home clone.

Functions§

test_cloud_home
An InMemoryCloudHome bound to a fixed Google Drive provider, for the tests that need a cloud home but do not care which provider it claims to be.
test_cloud_home_with_binding