Skip to content

tests: refactor mock service storage

Mock service operations use interior mutability to provide a facade of a remote service with no local mutation. Move all internally-mutable state into a helper struct behind a single RefCell. This clarifies the part of the struct that is expected to mutate during mock service operation. It also ensures that all mutation for a given operation is done behind a single mutable borrow of the entire state.

Merge request reports

Loading