Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMockClient ¶
NewMockClient creates a new http.Client with a MockRoundTripper.
Types ¶
type MockGitCloner ¶
MockGitCloner is a mock implementation of the GitCloner interface.
func (*MockGitCloner) CloneGitRepository ¶
func (m *MockGitCloner) CloneGitRepository(repoURL string, progress io.Writer) (*datanode.DataNode, error)
CloneGitRepository mocks the cloning of a Git repository.
type MockRoundTripper ¶
type MockRoundTripper struct {
// contains filtered or unexported fields
}
MockRoundTripper is a mock implementation of http.RoundTripper.
func (*MockRoundTripper) SetResponses ¶
func (m *MockRoundTripper) SetResponses(responses map[string]*http.Response)
SetResponses sets the mock responses in a thread-safe way.
Click to show internal directories.
Click to hide internal directories.