Documentation ¶
Overview ¶
fv_tests contains a suite of tests that test multiple packages together. In particular, we start a real server and snapshot cache in-process and make loop-back connections to it.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StateRecorder ¶
stateRecorder is our mock client callback, it records the updates it receives in a map. When accessed via methods, all fields are protected by a mutex so it can be used with this construction:
Eventually(recorder.State).Should(Equal(...))
func NewRecorder ¶
func NewRecorder() *StateRecorder
func (*StateRecorder) OnStatusUpdated ¶
func (r *StateRecorder) OnStatusUpdated(status api.SyncStatus)
func (*StateRecorder) OnUpdates ¶
func (r *StateRecorder) OnUpdates(updates []api.Update)
func (*StateRecorder) Status ¶
func (r *StateRecorder) Status() api.SyncStatus
Click to show internal directories.
Click to hide internal directories.