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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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