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

Struct MessageConstructor

internal/dnsproxytest/interface.go:39–44  ·  view source on GitHub ↗

MessageConstructor is a mock [dnsmsg.MessageConstructor] implementation for tests.

Source from the content-addressed store, hash-verified

37// MessageConstructor is a mock [dnsmsg.MessageConstructor] implementation for
38// tests.
39type MessageConstructor struct {
40 OnNewMsgNXDOMAIN func(req *dns.Msg) (resp *dns.Msg)
41 OnNewMsgSERVFAIL func(req *dns.Msg) (resp *dns.Msg)
42 OnNewMsgNOTIMPLEMENTED func(req *dns.Msg) (resp *dns.Msg)
43 OnNewMsgNODATA func(req *dns.Msg) (resp *dns.Msg)
44}
45
46// NewMessageConstructor creates a new *TestMessageConstructor with all it's
47// methods set to panic.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected