Versions in this module Expand all Collapse all v0 v0.2.0 Nov 24, 2023 v0.1.0 Oct 27, 2022 Changes in this version + type MockClient struct + CreateBranchErr error + CreatePullRequestErr error + GetFileErr error + UpdateFileErr error + func New(t *testing.T) *MockClient + func (m *MockClient) AddBranchHead(repo, branch, sha string) + func (m *MockClient) AddFileContents(repo, path, ref string, body []byte) + func (m *MockClient) AssertBranchCreated(repo, branch, sha string) + func (m *MockClient) AssertNoBranchesCreated() + func (m *MockClient) AssertNoInteractions() + func (m *MockClient) AssertNoPullRequestsCreated() + func (m *MockClient) AssertPullRequestCreated(repo string, inp *scm.PullRequestInput) + func (m *MockClient) CreateBranch(ctx context.Context, repo, branch, sha string) error + func (m *MockClient) CreatePullRequest(ctx context.Context, repo string, inp *scm.PullRequestInput) (*scm.PullRequest, error) + func (m *MockClient) GetBranchHead(ctx context.Context, repo, branch string) (string, error) + func (m *MockClient) GetFile(ctx context.Context, repo, ref, path string) (*scm.Content, error) + func (m *MockClient) GetUpdatedContents(repo, path, ref string) []byte + func (m *MockClient) RefuteBranchCreated(repo, branch, sha string) + func (m *MockClient) RefutePullRequestCreated(repo string, inp *scm.PullRequestInput) + func (m *MockClient) UpdateFile(ctx context.Context, repo, branch, path, message, previousSHA string, ...) error