mocks

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2017 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 Remote

type Remote struct {
	mock.Mock
}

Remote is an autogenerated mock type for the Remote type

func (*Remote) AddIssueLabels

func (_m *Remote) AddIssueLabels(c context.Context, user *model.User, repo *model.Repo, number int, lables []string) error

AddIssueLabels provides a mock function with given fields: user, repo, number, lables

func (*Remote) DelHook

func (_m *Remote) DelHook(c context.Context, _a0 *model.User, _a1 *model.Repo, _a2 string) error

DelHook provides a mock function with given fields: _a0, _a1, _a2

func (*Remote) GetComments

func (_m *Remote) GetComments(c context.Context, _a0 *model.User, _a1 *model.Repo, _a2 int) ([]*model.Comment, error)

GetComments provides a mock function with given fields: _a0, _a1, _a2

func (*Remote) GetContents

func (_m *Remote) GetContents(c context.Context, _a0 *model.User, _a1 *model.Repo, _a2 string) ([]byte, error)

GetContents provides a mock function with given fields: _a0, _a1, _a2

func (*Remote) GetHook

func (_m *Remote) GetHook(c context.Context, r *http.Request) (*model.Hook, error)

GetHook provides a mock function with given fields: r

func (*Remote) GetIssueLabels

func (_m *Remote) GetIssueLabels(c context.Context, user *model.User, repo *model.Repo, number int) ([]string, error)

GetIssueLabels get all the labels of an issue

func (*Remote) GetMembers

func (_m *Remote) GetMembers(c context.Context, _a0 *model.User, _a1 string) ([]*model.Member, error)

GetMembers provides a mock function with given fields: _a0, _a1

func (*Remote) GetPerm

func (_m *Remote) GetPerm(c context.Context, _a0 *model.User, _a1 string, _a2 string) (*model.Perm, error)

GetPerm provides a mock function with given fields: _a0, _a1, _a2

func (*Remote) GetRepo

func (_m *Remote) GetRepo(c context.Context, _a0 *model.User, _a1 string, _a2 string) (*model.Repo, error)

GetRepo provides a mock function with given fields: _a0, _a1, _a2

func (*Remote) GetRepos

func (_m *Remote) GetRepos(c context.Context, _a0 *model.User) ([]*model.Repo, error)

GetRepos provides a mock function with given fields: _a0

func (*Remote) GetReviews

func (_m *Remote) GetReviews(c context.Context, _a0 *model.User, _a1 *model.Repo, _a2 int) ([]*model.Review, error)

GetReviews provides a mock function with given fields: _a0

func (*Remote) GetTeams

func (_m *Remote) GetTeams(c context.Context, _a0 *model.User) ([]*model.Team, error)

GetTeams provides a mock function with given fields: _a0

func (*Remote) GetUser

func (_m *Remote) GetUser(c context.Context, _a0 http.ResponseWriter, _a1 *http.Request) (*model.User, error)

GetUser provides a mock function with given fields: _a0, _a1

func (*Remote) GetUserToken

func (_m *Remote) GetUserToken(c context.Context, _a0 string) (string, error)

GetUserToken provides a mock function with given fields: _a0

func (*Remote) RemoveIssueLabels

func (_m *Remote) RemoveIssueLabels(c context.Context, user *model.User, repo *model.Repo, number int, labels []string) error

RemoveIssueLabels provides a mock function with given fields: user, repo, number, labels

func (*Remote) SetHook

func (_m *Remote) SetHook(c context.Context, _a0 *model.User, _a1 *model.Repo, _a2 string) error

SetHook provides a mock function with given fields: _a0, _a1, _a2

func (*Remote) SetStatus

func (_m *Remote) SetStatus(c context.Context, _a0 *model.User, _a1 *model.Repo, _a2 int, _a3 int, _a4 int) error

SetStatus provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4

Jump to

Keyboard shortcuts

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