Documentation ¶
Index ¶
- func CaptureStderr(callback func()) string
- func CaptureStdout(callback func()) string
- type EventsObserverMock
- type MtglibAntiReplayCacheMock
- type MtglibNetworkMock
- func (m *MtglibNetworkMock) Dial(network, address string) (net.Conn, error)
- func (m *MtglibNetworkMock) DialContext(ctx context.Context, network, address string) (net.Conn, error)
- func (m *MtglibNetworkMock) MakeHTTPClient(dialFunc func(ctx context.Context, network, address string) (net.Conn, error)) *http.Client
- type NetConnMock
- func (n *NetConnMock) Close() error
- func (n *NetConnMock) LocalAddr() net.Addr
- func (n *NetConnMock) Read(b []byte) (int, error)
- func (n *NetConnMock) RemoteAddr() net.Addr
- func (n *NetConnMock) SetDeadline(t time.Time) error
- func (n *NetConnMock) SetReadDeadline(t time.Time) error
- func (n *NetConnMock) SetWriteDeadline(t time.Time) error
- func (n *NetConnMock) Write(b []byte) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CaptureStderr ¶
func CaptureStderr(callback func()) string
func CaptureStdout ¶
func CaptureStdout(callback func()) string
Types ¶
type EventsObserverMock ¶
type MtglibAntiReplayCacheMock ¶
func (*MtglibAntiReplayCacheMock) SeenBefore ¶
func (m *MtglibAntiReplayCacheMock) SeenBefore(data []byte) bool
type MtglibNetworkMock ¶
func (*MtglibNetworkMock) Dial ¶
func (m *MtglibNetworkMock) Dial(network, address string) (net.Conn, error)
func (*MtglibNetworkMock) DialContext ¶
type NetConnMock ¶
func (*NetConnMock) Close ¶
func (n *NetConnMock) Close() error
func (*NetConnMock) LocalAddr ¶
func (n *NetConnMock) LocalAddr() net.Addr
func (*NetConnMock) RemoteAddr ¶
func (n *NetConnMock) RemoteAddr() net.Addr
func (*NetConnMock) SetDeadline ¶
func (n *NetConnMock) SetDeadline(t time.Time) error
func (*NetConnMock) SetReadDeadline ¶
func (n *NetConnMock) SetReadDeadline(t time.Time) error
func (*NetConnMock) SetWriteDeadline ¶
func (n *NetConnMock) SetWriteDeadline(t time.Time) error
Click to show internal directories.
Click to hide internal directories.