Documentation
¶
Overview ¶
Package test contains higher-level (e.g., integration) tests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogCapture ¶
type LogCapture struct {
Lines []string
// contains filtered or unexported fields
}
func NewLogCapture ¶
func NewLogCapture(logger *logrus.Logger) *LogCapture
NewLogCapture sets up plain text logging to be captured for testing purposes
func NewLogCaptureWithCurrentFormatter ¶
func NewLogCaptureWithCurrentFormatter(logger *logrus.Logger) *LogCapture
NewLogCaptureWithCurrentFormatter sets up capture with current formatter
type MockRoundTripper ¶
func NewHTTPMock ¶
func NewHTTPMock() *MockRoundTripper
func (*MockRoundTripper) Expect ¶
func (m *MockRoundTripper) Expect(method string, body string, status int, err error)
func (*MockRoundTripper) HTTPClient ¶
func (m *MockRoundTripper) HTTPClient() *http.Client
Click to show internal directories.
Click to hide internal directories.