Documentation ¶
Overview ¶
SPDX-FileCopyrightText: Copyright (c) 2016-2024, CloudZero, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0
SPDX-FileCopyrightText: Copyright (c) 2016-2024, CloudZero, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0
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.