mocks

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 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 Gitlab

type Gitlab struct {
	mock.Mock
}

Gitlab is an autogenerated mock type for the Gitlab type

func NewGitlab

func NewGitlab(t mockConstructorTestingTNewGitlab) *Gitlab

NewGitlab creates a new instance of Gitlab. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Gitlab) Connect added in v1.8.0

func (_m *Gitlab) Connect() (*gitlab.Client, error)

Connect provides a mock function with given fields:

func (*Gitlab) Fill

func (_m *Gitlab) Fill(rulesheet *dtos.Rulesheet) error

Fill provides a mock function with given fields: rulesheet

func (*Gitlab) Save

func (_m *Gitlab) Save(rulesheet *dtos.Rulesheet, commitMessage string) error

Save provides a mock function with given fields: rulesheet, commitMessage

type Rulesheets

type Rulesheets struct {
	mock.Mock
}

Rulesheets is an autogenerated mock type for the Rulesheets type

func NewRulesheets

func NewRulesheets(t mockConstructorTestingTNewRulesheets) *Rulesheets

NewRulesheets creates a new instance of Rulesheets. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Rulesheets) Count added in v1.3.2

func (_m *Rulesheets) Count(ctx context.Context, entity interface{}) (int64, error)

Count provides a mock function with given fields: ctx, entity

func (*Rulesheets) Create

func (_m *Rulesheets) Create(_a0 context.Context, _a1 *dtos.Rulesheet) error

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

func (*Rulesheets) Delete

func (_m *Rulesheets) Delete(ctx context.Context, id string) (bool, error)

Delete provides a mock function with given fields: ctx, id

func (*Rulesheets) Find

func (_m *Rulesheets) Find(ctx context.Context, filter interface{}, options *services.FindOptions) ([]*dtos.Rulesheet, error)

Find provides a mock function with given fields: ctx, filter, options

func (*Rulesheets) Get

func (_m *Rulesheets) Get(ctx context.Context, id string) (*dtos.Rulesheet, error)

Get provides a mock function with given fields: ctx, id

func (*Rulesheets) Update

func (_m *Rulesheets) Update(ctx context.Context, entity dtos.Rulesheet) (*dtos.Rulesheet, error)

Update provides a mock function with given fields: ctx, entity

Jump to

Keyboard shortcuts

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