Documentation ¶
Index ¶
- type Group
- type Mocker
- func (m *Mocker) Func(target interface{}, double interface{})
- func (m *Mocker) FuncSeq(target interface{}, outputs []gomonkey.Params)
- func (m *Mocker) Method(target interface{}, method string, double interface{})
- func (m *Mocker) MethodSeq(target interface{}, method string, outputs []gomonkey.Params)
- func (m *Mocker) Reset()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Group ¶
type Group struct { MockMatch func(msg *dns.Msg) bool MockIsFallback func() bool MockHandle func(req *dns.Msg) *dns.Msg MockPostProcess func(req, resp *dns.Msg) MockStart func(resolver dns.Handler) MockStop func() MockName func() string MockString func() string }
func (Group) IsFallback ¶
type Mocker ¶
type Mocker struct {
// contains filtered or unexported fields
}
Mocker gomonkey的封装
func (*Mocker) Func ¶
func (m *Mocker) Func(target interface{}, double interface{})
Func gomonkey.ApplyFunc的封装
Click to show internal directories.
Click to hide internal directories.