Documentation ¶
Index ¶
- type MockLogger
- func (t *MockLogger) Debugf(msg string, args ...interface{})
- func (t *MockLogger) Errorf(msg string, args ...interface{})
- func (t *MockLogger) Fatalf(msg string, args ...interface{})
- func (t *MockLogger) Infof(msg string, args ...interface{})
- func (t *MockLogger) Panicf(msg string, args ...interface{})
- func (t *MockLogger) Warnf(msg string, args ...interface{})
- type Provider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockLogger ¶
type MockLogger struct { AllLogContents string FatalLogContents string PanicLogContents string DebugLogContents string InfoLogContents string WarnLogContents string ErrorLogContents string }
MockLogger is a mocked logger that can be used for testing.
func (*MockLogger) Debugf ¶
func (t *MockLogger) Debugf(msg string, args ...interface{})
Debugf writes to the mock logger.
func (*MockLogger) Errorf ¶
func (t *MockLogger) Errorf(msg string, args ...interface{})
Errorf writes to the mock logger.
func (*MockLogger) Fatalf ¶
func (t *MockLogger) Fatalf(msg string, args ...interface{})
Fatalf writes to the mock logger.
func (*MockLogger) Infof ¶
func (t *MockLogger) Infof(msg string, args ...interface{})
Infof writes to the mock logger.
func (*MockLogger) Panicf ¶
func (t *MockLogger) Panicf(msg string, args ...interface{})
Panicf writes to the mock logger.
func (*MockLogger) Warnf ¶
func (t *MockLogger) Warnf(msg string, args ...interface{})
Warnf writes to the mock logger.
Click to show internal directories.
Click to hide internal directories.