mocks

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 License: MIT Imports: 7 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 DBRepo added in v1.0.1

type DBRepo struct {
	mock.Mock
}

DBRepo is an autogenerated mock type for the DBRepo type

func NewDBRepo added in v1.0.1

func NewDBRepo(t interface {
	mock.TestingT
	Cleanup(func())
}) *DBRepo

NewDBRepo creates a new instance of DBRepo. 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 (*DBRepo) DeleteMigrationTable added in v1.0.1

func (_m *DBRepo) DeleteMigrationTable() error

DeleteMigrationTable provides a mock function with given fields:

func (*DBRepo) Exec added in v1.0.1

func (_m *DBRepo) Exec(query string) error

Exec provides a mock function with given fields: query

func (*DBRepo) InitMigrationTable added in v1.0.1

func (_m *DBRepo) InitMigrationTable() error

InitMigrationTable provides a mock function with given fields:

func (*DBRepo) LoadHistory added in v1.0.1

func (_m *DBRepo) LoadHistory() ([]*sqlmigrator.MigrationDBEntry, error)

LoadHistory provides a mock function with given fields:

func (*DBRepo) PushHistory added in v1.0.1

func (_m *DBRepo) PushHistory(migration *sqlmigrator.MigrationDBEntry) error

PushHistory provides a mock function with given fields: migration

type GitCmd added in v1.0.1

type GitCmd struct {
	mock.Mock
}

GitCmd is an autogenerated mock type for the GitCmd type

func NewGitCmd added in v1.0.1

func NewGitCmd(t interface {
	mock.TestingT
	Cleanup(func())
}) *GitCmd

NewGitCmd creates a new instance of GitCmd. 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 (*GitCmd) AddRemote added in v1.0.1

func (_m *GitCmd) AddRemote(remoteName string, remoteUrl string) error

AddRemote provides a mock function with given fields: remoteName, remoteUrl

func (*GitCmd) GetRemoteOrigin added in v1.0.1

func (_m *GitCmd) GetRemoteOrigin() (string, error)

GetRemoteOrigin provides a mock function with given fields:

func (*GitCmd) Init added in v1.0.1

func (_m *GitCmd) Init() error

Init provides a mock function with given fields:

func (*GitCmd) IsRepo added in v1.0.1

func (_m *GitCmd) IsRepo() bool

IsRepo provides a mock function with given fields:

func (*GitCmd) Revparse added in v1.0.1

func (_m *GitCmd) Revparse(ref string) (string, error)

Revparse provides a mock function with given fields: ref

func (*GitCmd) RunCmd added in v1.0.1

func (_m *GitCmd) RunCmd(args ...string) (string, error)

RunCmd provides a mock function with given fields: args

type GoCmd added in v1.0.1

type GoCmd struct {
	mock.Mock
}

GoCmd is an autogenerated mock type for the GoCmd type

func NewGoCmd added in v1.0.1

func NewGoCmd(t interface {
	mock.TestingT
	Cleanup(func())
}) *GoCmd

NewGoCmd creates a new instance of GoCmd. 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 (*GoCmd) IsMod added in v1.0.1

func (_m *GoCmd) IsMod() bool

IsMod provides a mock function with given fields:

func (*GoCmd) ModInit added in v1.0.1

func (_m *GoCmd) ModInit(_a0 string) error

ModInit provides a mock function with given fields: _a0

func (*GoCmd) ModPackageName added in v1.0.1

func (_m *GoCmd) ModPackageName() (string, error)

ModPackageName provides a mock function with given fields:

func (*GoCmd) ModTidy added in v1.0.1

func (_m *GoCmd) ModTidy() error

ModTidy provides a mock function with given fields:

func (*GoCmd) RunCmd added in v1.0.1

func (_m *GoCmd) RunCmd(args ...string) (string, error)

RunCmd provides a mock function with given fields: args

type HandlerFunc

type HandlerFunc struct {
	mock.Mock
}

HandlerFunc is an autogenerated mock type for the HandlerFunc type

func NewHandlerFunc

func NewHandlerFunc(t interface {
	mock.TestingT
	Cleanup(func())
}) *HandlerFunc

NewHandlerFunc creates a new instance of HandlerFunc. 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 (*HandlerFunc) Execute

func (_m *HandlerFunc) Execute(_a0 *gsk.Context)

Execute provides a mock function with given fields: _a0

type Middleware

type Middleware struct {
	mock.Mock
}

Middleware is an autogenerated mock type for the Middleware type

func NewMiddleware

func NewMiddleware(t interface {
	mock.TestingT
	Cleanup(func())
}) *Middleware

NewMiddleware creates a new instance of Middleware. 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 (*Middleware) Execute

func (_m *Middleware) Execute(_a0 gsk.HandlerFunc) gsk.HandlerFunc

Execute provides a mock function with given fields: _a0

type Params added in v0.6.2

type Params struct {
	mock.Mock
}

Params is an autogenerated mock type for the Params type

func NewParams added in v0.6.2

func NewParams(t interface {
	mock.TestingT
	Cleanup(func())
}) *Params

NewParams creates a new instance of Params. 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 (*Params) ByName added in v0.6.2

func (_m *Params) ByName(_a0 string) string

ByName provides a mock function with given fields: _a0

type Router added in v0.6.2

type Router struct {
	mock.Mock
}

Router is an autogenerated mock type for the Router type

func NewRouter added in v0.6.2

func NewRouter(t interface {
	mock.TestingT
	Cleanup(func())
}) *Router

NewRouter creates a new instance of Router. 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 (*Router) HandlerFunc added in v0.6.2

func (_m *Router) HandlerFunc(method string, path string, handler http.HandlerFunc)

HandlerFunc provides a mock function with given fields: method, path, handler

func (*Router) ParamsFromContext added in v0.6.2

func (_m *Router) ParamsFromContext(_a0 context.Context) gsk.Params

ParamsFromContext provides a mock function with given fields: _a0

func (*Router) Router added in v0.6.2

func (_m *Router) Router() *httprouter.Router

Router provides a mock function with given fields:

func (*Router) ServeFiles added in v0.6.2

func (_m *Router) ServeFiles(_a0 string, _a1 http.FileSystem)

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

func (*Router) ServeHTTP added in v0.6.2

func (_m *Router) ServeHTTP(_a0 http.ResponseWriter, _a1 *http.Request)

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

type SqlQuery added in v0.6.2

type SqlQuery struct {
	mock.Mock
}

SqlQuery is an autogenerated mock type for the SqlQuery type

func NewSqlQuery added in v0.6.2

func NewSqlQuery(t interface {
	mock.TestingT
	Cleanup(func())
}) *SqlQuery

NewSqlQuery creates a new instance of SqlQuery. 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 (*SqlQuery) Build added in v0.6.2

func (_m *SqlQuery) Build() string

Build provides a mock function with given fields:

func (*SqlQuery) DeleteFrom added in v0.6.2

func (_m *SqlQuery) DeleteFrom(table string) sqlBuilder.SqlQuery

DeleteFrom provides a mock function with given fields: table

func (*SqlQuery) Fields added in v0.6.2

func (_m *SqlQuery) Fields(fields ...string) sqlBuilder.SqlQuery

Fields provides a mock function with given fields: fields

func (*SqlQuery) From added in v0.6.2

func (_m *SqlQuery) From(tables ...string) sqlBuilder.SqlQuery

From provides a mock function with given fields: tables

func (*SqlQuery) InsertInto added in v0.6.2

func (_m *SqlQuery) InsertInto(table string) sqlBuilder.SqlQuery

InsertInto provides a mock function with given fields: table

func (*SqlQuery) Join added in v0.6.2

func (_m *SqlQuery) Join(tables ...string) sqlBuilder.SqlQuery

Join provides a mock function with given fields: tables

func (*SqlQuery) Limit added in v0.6.2

func (_m *SqlQuery) Limit(limit string) sqlBuilder.SqlQuery

Limit provides a mock function with given fields: limit

func (*SqlQuery) Offset added in v0.6.2

func (_m *SqlQuery) Offset(offset string) sqlBuilder.SqlQuery

Offset provides a mock function with given fields: offset

func (*SqlQuery) On added in v0.6.2

func (_m *SqlQuery) On(conditions ...string) sqlBuilder.SqlQuery

On provides a mock function with given fields: conditions

func (*SqlQuery) OrderBy added in v0.6.2

func (_m *SqlQuery) OrderBy(columns ...string) sqlBuilder.SqlQuery

OrderBy provides a mock function with given fields: columns

func (*SqlQuery) Select added in v0.6.2

func (_m *SqlQuery) Select(columns ...string) sqlBuilder.SqlQuery

Select provides a mock function with given fields: columns

func (*SqlQuery) Set added in v0.6.2

func (_m *SqlQuery) Set(values ...string) sqlBuilder.SqlQuery

Set provides a mock function with given fields: values

func (*SqlQuery) Update added in v0.6.2

func (_m *SqlQuery) Update(table string) sqlBuilder.SqlQuery

Update provides a mock function with given fields: table

func (*SqlQuery) Values added in v0.6.2

func (_m *SqlQuery) Values(values ...string) sqlBuilder.SqlQuery

Values provides a mock function with given fields: values

func (*SqlQuery) Where added in v0.6.2

func (_m *SqlQuery) Where(conditions ...string) sqlBuilder.SqlQuery

Where provides a mock function with given fields: conditions

Jump to

Keyboard shortcuts

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