Documentation ¶
Index ¶
- Constants
- func MockBitbucketUser() repository.BitbucketUser
- type BitbucketClientMock
- func (c *BitbucketClientMock) AddProjectRepositoryCommitBuildStatus(ctx context.Context, projectKey string, repositorySlug string, commitId string, ...) error
- func (c *BitbucketClientMock) CreatePullRequestComment(ctx context.Context, projectKey string, repositorySlug string, ...) (bbclientint.PullRequestComment, error)
- func (m *BitbucketClientMock) GetBitbucketUser(ctx context.Context, username string) (repository.BitbucketUser, error)
- func (c *BitbucketClientMock) GetChanges(ctx context.Context, projectKey string, repositorySlug string, ...) (bbclientint.Changes, error)
- func (c *BitbucketClientMock) GetFileContentsAt(ctx context.Context, projectKey string, repositorySlug string, atHash string, ...) (string, error)
- func (c *BitbucketClientMock) GetPullRequest(ctx context.Context, projectKey string, repositorySlug string, ...) (bbclientint.PullRequest, error)
- func (m *BitbucketClientMock) Setup() error
Constants ¶
View Source
const HTTP_ERROR_USER = "httperroruser"
View Source
const NOT_EXISITNG_USER = "notexistinguser"
View Source
const OTHER_ERROR_USER = "othererroruser"
Variables ¶
This section is empty.
Functions ¶
func MockBitbucketUser ¶
func MockBitbucketUser() repository.BitbucketUser
Types ¶
type BitbucketClientMock ¶
type BitbucketClientMock struct { }
func (*BitbucketClientMock) AddProjectRepositoryCommitBuildStatus ¶ added in v0.38.0
func (c *BitbucketClientMock) AddProjectRepositoryCommitBuildStatus(ctx context.Context, projectKey string, repositorySlug string, commitId string, commitBuildStatusRequest bbclientint.CommitBuildStatusRequest) error
func (*BitbucketClientMock) CreatePullRequestComment ¶ added in v0.38.0
func (c *BitbucketClientMock) CreatePullRequestComment(ctx context.Context, projectKey string, repositorySlug string, pullRequestId int64, pullRequestCommentRequest bbclientint.PullRequestCommentRequest) (bbclientint.PullRequestComment, error)
func (*BitbucketClientMock) GetBitbucketUser ¶
func (m *BitbucketClientMock) GetBitbucketUser(ctx context.Context, username string) (repository.BitbucketUser, error)
func (*BitbucketClientMock) GetChanges ¶ added in v0.38.0
func (c *BitbucketClientMock) GetChanges(ctx context.Context, projectKey string, repositorySlug string, sinceHash string, untilHash string) (bbclientint.Changes, error)
func (*BitbucketClientMock) GetFileContentsAt ¶ added in v0.38.0
func (*BitbucketClientMock) GetPullRequest ¶ added in v0.38.0
func (c *BitbucketClientMock) GetPullRequest(ctx context.Context, projectKey string, repositorySlug string, pullRequestId int32) (bbclientint.PullRequest, error)
func (*BitbucketClientMock) Setup ¶
func (m *BitbucketClientMock) Setup() error
Click to show internal directories.
Click to hide internal directories.