Expand description

Defines a crude mock Keystore which always returns the same Error for every call. This is about as close as we can get to a true mock which would allow tweaking individual handlers, hence why this is a “crude” mock.

Structs

Control if a mocked lair keystore is using the real keystore or the mock callback.

Functions

Spawn a test keystore which always returns the same LairError for every call.

Spawn a test keystore that can switch between mocked and real. It starts off as real and can be switched to the given callback mock using the MockLairControl.