MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / TestingHandler

Struct TestingHandler

db/event_manager_test.go:35–40  ·  view source on GitHub ↗

Testing handler tracks received events in ResultChannel

Source from the content-addressed store, hash-verified

33
34// Testing handler tracks received events in ResultChannel
35type TestingHandler struct {
36 ResultChannel chan interface{} // channel for tracking async results
37 HandledEvent EventType
38 handleDelay int // long running handler execution
39 t *testing.T // enclosing test instance
40}
41
42func (th *TestingHandler) HandleEvent(_ context.Context, event Event) bool {
43

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected