bbclientmock

package
v0.38.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 13, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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 (c *BitbucketClientMock) GetFileContentsAt(ctx context.Context, projectKey string, repositorySlug string, atHash string, path string) (string, error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL