Documentation ¶
Index ¶
- type MockCache
- func (m *MockCache) AddRepoFile(repoURL, branch, path string, body []byte)
- func (m *MockCache) AssertBranchCreated(t *testing.T, repoURL, fromBranch, newBranch string)
- func (m *MockCache) AssertCommitAndPush(t *testing.T, repoURL, branch, message, token string)
- func (m *MockCache) AssertFileWrittenToBranch(t *testing.T, repoURL, branch, path string, body []byte)
- func (m *MockCache) CommitAndPushBranch(ctx context.Context, repoURL, branch, message, token string) error
- func (m *MockCache) CreateAndCheckoutBranch(ctx context.Context, repoURL, fromBranch, newBranch string) error
- func (m *MockCache) ReadFileFromBranch(ctx context.Context, repoURL, filePath, branch string) ([]byte, error)
- func (m *MockCache) WriteFileToBranchAndStage(ctx context.Context, repoURL, branch, filePath string, data []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockCache ¶
type MockCache struct {
// contains filtered or unexported fields
}
func New ¶
func New() *MockCache
New creates and returns a new git.Cache implementation that operates entirely in-memory
func (*MockCache) AddRepoFile ¶
func (*MockCache) AssertBranchCreated ¶
func (*MockCache) AssertCommitAndPush ¶
func (*MockCache) AssertFileWrittenToBranch ¶
func (*MockCache) CommitAndPushBranch ¶
func (m *MockCache) CommitAndPushBranch(ctx context.Context, repoURL, branch, message, token string) error
CommitAndPushBranch fulfils the git.Cache interface.
func (*MockCache) CreateAndCheckoutBranch ¶
func (m *MockCache) CreateAndCheckoutBranch(ctx context.Context, repoURL, fromBranch, newBranch string) error
CreateAndCheckoutBranch fulfils the git.Cache interface.
Click to show internal directories.
Click to hide internal directories.