Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockLogger ¶
type MockLogger struct { SugaredLogger *zap.SugaredLogger ObservedLogs *observer.ObservedLogs }
func NewMockLogger ¶
func NewMockLogger() *MockLogger
func (*MockLogger) Messages ¶
func (l *MockLogger) Messages() []string
type MockReadCloser ¶
Mock for io.ReadCloser
func NewMockReadCloser ¶
func NewMockReadCloser() *MockReadCloser
NewMockReadCloser initializes a MockReadCloser with some data
func (*MockReadCloser) Close ¶
func (m *MockReadCloser) Close() error
Close simulates the Close method, integrates with testify expectations
type MockWriteCloser ¶
MockWriteCloser simulates an io.WriteCloser and integrates with testify.Mock
func NewMockWriteCloser ¶
func NewMockWriteCloser() *MockWriteCloser
NewMockWriteCloser initializes a MockWriteCloser
func (*MockWriteCloser) Close ¶
func (m *MockWriteCloser) Close() error
Close simulates the Close method, integrates with testify expectations
Click to show internal directories.
Click to hide internal directories.