pulltest

package
v0.0.0-...-dabe4b8 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockPullContext

type MockPullContext struct {
	OwnerValue  string
	RepoValue   string
	NumberValue int

	BaseOwnerValue string
	BaseRepoValue  string
	BaseRefValue   string

	TitleValue   string
	BodyValue    string
	LocatorValue string

	BranchBase string
	BranchName string

	MergeStateValue    *pull.MergeState
	MergeStateErrValue error

	LabelValue    []string
	LabelErrValue error

	CommentValue    []string
	CommentErrValue error

	CommitsValue    []*pull.Commit
	CommitsErrValue error

	RequiredStatusesValue    []string
	RequiredStatusesErrValue error

	PushRestrictionsValue    bool
	PushRestrictionsErrValue error

	SuccessStatusesValue []string
	FailureStatusesValue map[string]string
	StatusesErrValue     error

	IsTargetedValue    bool
	IsTargetedErrValue error

	IsDraftValue bool

	PullRequestsForBranchValue    []*github.PullRequest
	PullRequestsForBranchErrValue error
}

MockPullContext is a dummy Context implementation.

func (*MockPullContext) BaseOwner

func (c *MockPullContext) BaseOwner() string

func (*MockPullContext) BaseRef

func (c *MockPullContext) BaseRef() string

func (*MockPullContext) BaseRepo

func (c *MockPullContext) BaseRepo() string

func (*MockPullContext) Body

func (c *MockPullContext) Body() string

func (*MockPullContext) Branches

func (c *MockPullContext) Branches() (base string, head string)

func (*MockPullContext) Comments

func (c *MockPullContext) Comments(ctx context.Context) ([]string, error)

func (*MockPullContext) Commits

func (c *MockPullContext) Commits(ctx context.Context) ([]*pull.Commit, error)

func (*MockPullContext) CurrentStatuses

func (c *MockPullContext) CurrentStatuses(ctx context.Context) ([]string, map[string]string, error)

func (*MockPullContext) IsDraft

func (c *MockPullContext) IsDraft() bool

func (*MockPullContext) IsTargeted

func (c *MockPullContext) IsTargeted(ctx context.Context) (bool, error)

func (*MockPullContext) Labels

func (c *MockPullContext) Labels(ctx context.Context) ([]string, error)

func (*MockPullContext) Locator

func (c *MockPullContext) Locator() string

func (*MockPullContext) MergeState

func (c *MockPullContext) MergeState(ctx context.Context) (*pull.MergeState, error)

func (*MockPullContext) Number

func (c *MockPullContext) Number() int

func (*MockPullContext) Owner

func (c *MockPullContext) Owner() string

func (*MockPullContext) PullRequestsForBranch

func (c *MockPullContext) PullRequestsForBranch(ctx context.Context) ([]*github.PullRequest, error)

func (*MockPullContext) PushRestrictions

func (c *MockPullContext) PushRestrictions(ctx context.Context) (bool, error)

func (*MockPullContext) Repo

func (c *MockPullContext) Repo() string

func (*MockPullContext) RequiredStatuses

func (c *MockPullContext) RequiredStatuses(ctx context.Context) ([]string, error)

func (*MockPullContext) Title

func (c *MockPullContext) Title() string

Jump to

Keyboard shortcuts

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