MCPcopy Create free account
hub / github.com/HyBuildNet/quic-relay / mockHandler

Struct mockHandler

internal/handler/handler_test.go:10–17  ·  view source on GitHub ↗

mockHandler is a test handler that records calls.

Source from the content-addressed store, hash-verified

8
9// mockHandler is a test handler that records calls.
10type mockHandler struct {
11 name string
12 onConnectResult Result
13 onPacketResult Result
14 connectCalled bool
15 packetCalled bool
16 disconnectCalled bool
17}
18
19func newMockHandler(name string, connectAction, packetAction Action) *mockHandler {
20 return &mockHandler{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected