mocks

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Forge

type Forge struct {
	mock.Mock
}

Forge is an autogenerated mock type for the Forge type

func NewForge

func NewForge(t interface {
	mock.TestingT
	Cleanup(func())
}) *Forge

NewForge creates a new instance of Forge. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*Forge) Activate

func (_m *Forge) Activate(ctx context.Context, u *model.User, r *model.Repo, link string) error

Activate provides a mock function with given fields: ctx, u, r, link

func (*Forge) Auth

func (_m *Forge) Auth(ctx context.Context, token string, secret string) (string, error)

Auth provides a mock function with given fields: ctx, token, secret

func (*Forge) BranchHead

func (_m *Forge) BranchHead(ctx context.Context, u *model.User, r *model.Repo, branch string) (string, error)

BranchHead provides a mock function with given fields: ctx, u, r, branch

func (*Forge) Branches

func (_m *Forge) Branches(ctx context.Context, u *model.User, r *model.Repo, p *model.ListOptions) ([]string, error)

Branches provides a mock function with given fields: ctx, u, r, p

func (*Forge) Deactivate

func (_m *Forge) Deactivate(ctx context.Context, u *model.User, r *model.Repo, link string) error

Deactivate provides a mock function with given fields: ctx, u, r, link

func (*Forge) Dir

func (_m *Forge) Dir(ctx context.Context, u *model.User, r *model.Repo, b *model.Pipeline, f string) ([]*types.FileMeta, error)

Dir provides a mock function with given fields: ctx, u, r, b, f

func (*Forge) File

func (_m *Forge) File(ctx context.Context, u *model.User, r *model.Repo, b *model.Pipeline, f string) ([]byte, error)

File provides a mock function with given fields: ctx, u, r, b, f

func (*Forge) Hook

func (_m *Forge) Hook(ctx context.Context, r *http.Request) (*model.Repo, *model.Pipeline, error)

Hook provides a mock function with given fields: ctx, r

func (*Forge) Login

func (_m *Forge) Login(ctx context.Context, w http.ResponseWriter, r *http.Request) (*model.User, error)

Login provides a mock function with given fields: ctx, w, r

func (*Forge) Name

func (_m *Forge) Name() string

Name provides a mock function with given fields:

func (*Forge) Netrc

func (_m *Forge) Netrc(u *model.User, r *model.Repo) (*model.Netrc, error)

Netrc provides a mock function with given fields: u, r

func (*Forge) Org

func (_m *Forge) Org(ctx context.Context, u *model.User, org string) (*model.Org, error)

Org provides a mock function with given fields: ctx, u, org

func (*Forge) OrgMembership

func (_m *Forge) OrgMembership(ctx context.Context, u *model.User, org string) (*model.OrgPerm, error)

OrgMembership provides a mock function with given fields: ctx, u, org

func (*Forge) PullRequests

func (_m *Forge) PullRequests(ctx context.Context, u *model.User, r *model.Repo, p *model.ListOptions) ([]*model.PullRequest, error)

PullRequests provides a mock function with given fields: ctx, u, r, p

func (*Forge) Repo

func (_m *Forge) Repo(ctx context.Context, u *model.User, remoteID model.ForgeRemoteID, owner string, name string) (*model.Repo, error)

Repo provides a mock function with given fields: ctx, u, remoteID, owner, name

func (*Forge) Repos

func (_m *Forge) Repos(ctx context.Context, u *model.User) ([]*model.Repo, error)

Repos provides a mock function with given fields: ctx, u

func (*Forge) Status

func (_m *Forge) Status(ctx context.Context, u *model.User, r *model.Repo, b *model.Pipeline, p *model.Workflow) error

Status provides a mock function with given fields: ctx, u, r, b, p

func (*Forge) Teams

func (_m *Forge) Teams(ctx context.Context, u *model.User) ([]*model.Team, error)

Teams provides a mock function with given fields: ctx, u

func (*Forge) URL

func (_m *Forge) URL() string

URL provides a mock function with given fields:

Jump to

Keyboard shortcuts

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