Documentation
¶
Index ¶
- Variables
- func FailOnError(t *testing.T, err error)
- func Fixture(fn string) ([]byte, error)
- type Logger
- func (l *Logger) Debug(msg string, v ...interface{})
- func (l *Logger) Error(msg string, v ...interface{})
- func (l *Logger) Fatal(msg string, v ...interface{})
- func (l *Logger) Info(msg string, v ...interface{})
- func (l *Logger) Print(msg string, v ...interface{})
- func (l *Logger) Trace(msg string, v ...interface{})
- func (l *Logger) Warn(msg string, v ...interface{})
- type StubHTTPClient
Constants ¶
This section is empty.
Variables ¶
View Source
var LogLevel = struct { TRACE, DEBUG, INFO, WARN, ERROR, FATAL int }{0, 1, 2, 3, 4, 5}
Log levels inspired in this list: https://github.com/NLog/NLog/wiki/Log-levels
Functions ¶
func FailOnError ¶
Types ¶
type StubHTTPClient ¶
type StubHTTPClient struct { Expected []byte // The payload that you expect to receive. This is to verify that your implementation is sending the proper payload to the server. Response []byte // The response you want to return. ShouldVerify bool // Make sure that the expected and the actual sent payload match. // contains filtered or unexported fields }
func NewStubHTTPClient ¶
func NewStubHTTPClient(t *testing.T) *StubHTTPClient
func (*StubHTTPClient) Verify ¶
func (s *StubHTTPClient) Verify()
Click to show internal directories.
Click to hide internal directories.