Documentation
¶
Overview ¶
Package test contains utility methods for unit tests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CmdToMessage ¶
CmdToMessage - should only be used in unit tests.
func NewMockStorage ¶
func NewMockStorage(shouldFail bool) *mockStorage
Types ¶
type MockLogger ¶
type MockLogger struct {
Logs []string
}
func (*MockLogger) Close ¶
func (l *MockLogger) Close()
func (*MockLogger) Debug ¶
func (l *MockLogger) Debug(format string, args ...any)
func (*MockLogger) Error ¶
func (l *MockLogger) Error(format string, args ...any)
func (*MockLogger) Info ¶
func (l *MockLogger) Info(format string, args ...any)
Click to show internal directories.
Click to hide internal directories.