MCPcopy
hub / github.com/AdguardTeam/dnsproxy / TestHandler

Struct TestHandler

proxy/requesthandler_internal_test.go:9–11  ·  view source on GitHub ↗

TestHandler is a mock request handler implementation to simplify testing. TODO(d.kolyshev): Move to internal/dnsproxytest.

Source from the content-addressed store, hash-verified

7//
8// TODO(d.kolyshev): Move to internal/dnsproxytest.
9type TestHandler struct {
10 OnHandle func(ctx context.Context, p *Proxy, dctx *DNSContext) (err error)
11}
12
13// type check
14var _ Handler = (*TestHandler)(nil)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected