mocks

package
v0.6.8 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DatabaseRepo added in v0.4.0

type DatabaseRepo struct {
	mock.Mock
}

DatabaseRepo is an autogenerated mock type for the DatabaseRepo type

func NewDatabaseRepo added in v0.4.0

func NewDatabaseRepo(t mockConstructorTestingTNewDatabaseRepo) *DatabaseRepo

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

func (*DatabaseRepo) ApplyMigration added in v0.4.0

func (_m *DatabaseRepo) ApplyMigration(migration *migrator.Migration) error

ApplyMigration provides a mock function with given fields: migration

func (*DatabaseRepo) CreateMigrationTableIfNotExists added in v0.4.0

func (_m *DatabaseRepo) CreateMigrationTableIfNotExists() error

CreateMigrationTableIfNotExists provides a mock function with given fields:

func (*DatabaseRepo) DeleteMigrationTable added in v0.4.0

func (_m *DatabaseRepo) DeleteMigrationTable() error

DeleteMigrationTable provides a mock function with given fields:

func (*DatabaseRepo) GetLastAppliedMigration added in v0.4.0

func (_m *DatabaseRepo) GetLastAppliedMigration() (*migrator.Migration, error)

GetLastAppliedMigration provides a mock function with given fields:

func (*DatabaseRepo) LoadLastAppliedMigration added in v0.4.0

func (_m *DatabaseRepo) LoadLastAppliedMigration() (*migrator.Migration, error)

LoadLastAppliedMigration provides a mock function with given fields:

func (*DatabaseRepo) LoadMigrations added in v0.4.0

func (_m *DatabaseRepo) LoadMigrations() ([]*migrator.Migration, error)

LoadMigrations provides a mock function with given fields:

type FileRepo added in v0.4.0

type FileRepo struct {
	mock.Mock
}

FileRepo is an autogenerated mock type for the FileRepo type

func NewFileRepo added in v0.4.0

func NewFileRepo(t mockConstructorTestingTNewFileRepo) *FileRepo

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

func (*FileRepo) CreateMigrationFile added in v0.4.0

func (_m *FileRepo) CreateMigrationFile(migration *migrator.Migration) error

CreateMigrationFile provides a mock function with given fields: migration

func (*FileRepo) DeleteMigrationDirectory added in v0.4.0

func (_m *FileRepo) DeleteMigrationDirectory() error

DeleteMigrationDirectory provides a mock function with given fields:

func (*FileRepo) DeleteMigrationFile added in v0.4.0

func (_m *FileRepo) DeleteMigrationFile(migration *migrator.Migration) error

DeleteMigrationFile provides a mock function with given fields: migration

func (*FileRepo) GetMigrationFilePathsByType added in v0.4.0

func (_m *FileRepo) GetMigrationFilePathsByType(migrationType migrator.MigrationType) ([]string, error)

GetMigrationFilePathsByType provides a mock function with given fields: migrationType

func (*FileRepo) LoadMigrationQuery added in v0.4.0

func (_m *FileRepo) LoadMigrationQuery(migration *migrator.Migration) error

LoadMigrationQuery provides a mock function with given fields: migration

func (*FileRepo) LoadMigrationsFromFile added in v0.4.0

func (_m *FileRepo) LoadMigrationsFromFile(migrationType migrator.MigrationType) ([]*migrator.Migration, error)

LoadMigrationsFromFile provides a mock function with given fields: migrationType

func (*FileRepo) OpenDirectory added in v0.4.0

func (_m *FileRepo) OpenDirectory() error

OpenDirectory provides a mock function with given fields:

func (*FileRepo) WriteMigrationToFile added in v0.4.0

func (_m *FileRepo) WriteMigrationToFile(migration *migrator.Migration) error

WriteMigrationToFile provides a mock function with given fields: migration

type HandlerFunc

type HandlerFunc struct {
	mock.Mock
}

HandlerFunc is an autogenerated mock type for the HandlerFunc type

func NewHandlerFunc

func NewHandlerFunc(t mockConstructorTestingTNewHandlerFunc) *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.

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 mockConstructorTestingTNewMiddleware) *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.

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 mockConstructorTestingTNewParams) *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.

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 mockConstructorTestingTNewRouter) *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.

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 mockConstructorTestingTNewSqlQuery) *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.

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