mocks

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: MIT Imports: 7 Imported by: 0 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 Module

type Module struct {
	mock.Mock
}

Module is an autogenerated mock type for the Module type

func NewModule

func NewModule(t interface {
	mock.TestingT
	Cleanup(func())
}) *Module

NewModule creates a new instance of Module. 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 (*Module) Configure

func (_m *Module) Configure(_a0 config.Config) error

Configure provides a mock function with given fields: _a0

func (*Module) Dependencies

func (_m *Module) Dependencies() []string

Dependencies provides a mock function with no fields

func (*Module) GetMigrationSources

func (_m *Module) GetMigrationSources(projectRoot string) []migration_runner.Source

GetMigrationSources provides a mock function with given fields: projectRoot

func (*Module) Initialize

func (_m *Module) Initialize(ctx context.Context, db *gorm.DB, router *gin.Engine) error

Initialize provides a mock function with given fields: ctx, db, router

func (*Module) MigrationsDir

func (_m *Module) MigrationsDir() string

MigrationsDir provides a mock function with no fields

func (*Module) Name

func (_m *Module) Name() string

Name provides a mock function with no fields

func (*Module) Namespace

func (_m *Module) Namespace() module.ModuleNamespace

Namespace provides a mock function with no fields

func (*Module) NewConfig

func (_m *Module) NewConfig() config.Config

NewConfig provides a mock function with no fields

func (*Module) ProvidesMigrations

func (_m *Module) ProvidesMigrations() bool

ProvidesMigrations provides a mock function with no fields

func (*Module) Shutdown

func (_m *Module) Shutdown(ctx context.Context) error

Shutdown provides a mock function with given fields: ctx

func (*Module) Version

func (_m *Module) Version() string

Version provides a mock function with no fields

Jump to

Keyboard shortcuts

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