bitbucketmock

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: 5 Imported by: 0

Documentation

Index

Constants

View Source
const FILTER_FAILED_USERNAME = "filterfailedusername"

Variables

This section is empty.

Functions

func New

func New() repository.Bitbucket

Types

type BitbucketMock

type BitbucketMock struct {
	ChangedFilesResponse []repository.File
	PRHead               string
	Recording            []string
}

func (*BitbucketMock) AddCommitBuildStatus added in v0.38.0

func (b *BitbucketMock) AddCommitBuildStatus(ctx context.Context, commitHash string, url string, key string, success bool) error

func (*BitbucketMock) CreatePullRequestComment added in v0.38.0

func (b *BitbucketMock) CreatePullRequestComment(ctx context.Context, pullRequestId int, comment string) error

func (*BitbucketMock) FilterExistingUsernames

func (b *BitbucketMock) FilterExistingUsernames(ctx context.Context, usernames []string) ([]string, error)

func (*BitbucketMock) GetBitbucketUser

func (b *BitbucketMock) GetBitbucketUser(ctx context.Context, username string) (repository.BitbucketUser, error)

func (*BitbucketMock) GetBitbucketUsers

func (b *BitbucketMock) GetBitbucketUsers(ctx context.Context, usernames []string) ([]repository.BitbucketUser, error)

func (*BitbucketMock) GetChangedFilesOnPullRequest added in v0.38.0

func (b *BitbucketMock) GetChangedFilesOnPullRequest(ctx context.Context, pullRequestId int) ([]repository.File, string, error)

func (*BitbucketMock) IsBitbucket

func (b *BitbucketMock) IsBitbucket() bool

func (*BitbucketMock) Setup

func (b *BitbucketMock) Setup() error

func (*BitbucketMock) SetupClient added in v0.33.0

func (b *BitbucketMock) SetupClient(ctx context.Context) error

Jump to

Keyboard shortcuts

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