package
Version:
v1.22.2
Opens a new window with list of versions in this module.
Published: Feb 21, 2025
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func NewTestClient(fn RoundTripFunc) *http.Client
NewTestClient returns *http.Client with Transport replaced to avoid making real calls
type RoundTripFunc func(req *http.Request) (*http.Response, error)
func (f RoundTripFunc) RoundTrip(req *http.Request) (*http.Response, error)
RoundTrip .
type TestReadCloser struct {
ReadError error
CloseError error
}
func (r *TestReadCloser) Close() error
func (r *TestReadCloser) Read(p []byte) (n int, err error)
Source Files
¶
Directories
¶
Package mocks is a generated GoMock package.
|
Package mocks is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.