migration

package
v1.15.4 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

type Connection struct {
	mock.Mock
}

Connection is an autogenerated mock type for the Connection type

func NewConnection

func NewConnection(t interface {
	mock.TestingT
	Cleanup(func())
}) *Connection

NewConnection creates a new instance of Connection. 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 (*Connection) Connection

func (_m *Connection) Connection() string

Connection provides a mock function with given fields:

func (*Connection) EXPECT

func (_m *Connection) EXPECT() *Connection_Expecter

type Connection_Connection_Call

type Connection_Connection_Call struct {
	*mock.Call
}

Connection_Connection_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Connection'

func (*Connection_Connection_Call) Return

func (*Connection_Connection_Call) Run

func (*Connection_Connection_Call) RunAndReturn

func (_c *Connection_Connection_Call) RunAndReturn(run func() string) *Connection_Connection_Call

type Connection_Expecter

type Connection_Expecter struct {
	// contains filtered or unexported fields
}

func (*Connection_Expecter) Connection

Connection is a helper method to define mock.On call

type Migration

type Migration struct {
	mock.Mock
}

Migration is an autogenerated mock type for the Migration type

func NewMigration

func NewMigration(t interface {
	mock.TestingT
	Cleanup(func())
}) *Migration

NewMigration creates a new instance of Migration. 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 (*Migration) Down

func (_m *Migration) Down()

Down provides a mock function with given fields:

func (*Migration) EXPECT

func (_m *Migration) EXPECT() *Migration_Expecter

func (*Migration) Signature

func (_m *Migration) Signature() string

Signature provides a mock function with given fields:

func (*Migration) Up

func (_m *Migration) Up()

Up provides a mock function with given fields:

type Migration_Down_Call

type Migration_Down_Call struct {
	*mock.Call
}

Migration_Down_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Down'

func (*Migration_Down_Call) Return

func (*Migration_Down_Call) Run

func (_c *Migration_Down_Call) Run(run func()) *Migration_Down_Call

func (*Migration_Down_Call) RunAndReturn

func (_c *Migration_Down_Call) RunAndReturn(run func()) *Migration_Down_Call

type Migration_Expecter

type Migration_Expecter struct {
	// contains filtered or unexported fields
}

func (*Migration_Expecter) Down

Down is a helper method to define mock.On call

func (*Migration_Expecter) Signature

Signature is a helper method to define mock.On call

func (*Migration_Expecter) Up

Up is a helper method to define mock.On call

type Migration_Signature_Call

type Migration_Signature_Call struct {
	*mock.Call
}

Migration_Signature_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Signature'

func (*Migration_Signature_Call) Return

func (*Migration_Signature_Call) Run

func (*Migration_Signature_Call) RunAndReturn

func (_c *Migration_Signature_Call) RunAndReturn(run func() string) *Migration_Signature_Call

type Migration_Up_Call

type Migration_Up_Call struct {
	*mock.Call
}

Migration_Up_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Up'

func (*Migration_Up_Call) Return

func (_c *Migration_Up_Call) Return() *Migration_Up_Call

func (*Migration_Up_Call) Run

func (_c *Migration_Up_Call) Run(run func()) *Migration_Up_Call

func (*Migration_Up_Call) RunAndReturn

func (_c *Migration_Up_Call) RunAndReturn(run func()) *Migration_Up_Call

type Migrator

type Migrator struct {
	mock.Mock
}

Migrator is an autogenerated mock type for the Migrator type

func NewMigrator

func NewMigrator(t interface {
	mock.TestingT
	Cleanup(func())
}) *Migrator

NewMigrator creates a new instance of Migrator. 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 (*Migrator) Create

func (_m *Migrator) Create(name string) error

Create provides a mock function with given fields: name

func (*Migrator) EXPECT

func (_m *Migrator) EXPECT() *Migrator_Expecter

func (*Migrator) Fresh

func (_m *Migrator) Fresh() error

Fresh provides a mock function with no fields

func (*Migrator) Reset

func (_m *Migrator) Reset() error

Reset provides a mock function with no fields

func (*Migrator) Rollback

func (_m *Migrator) Rollback(step int, batch int) error

Rollback provides a mock function with given fields: step, batch

func (*Migrator) Run

func (_m *Migrator) Run() error

Run provides a mock function with no fields

func (*Migrator) Status

func (_m *Migrator) Status() ([]migration.Status, error)

Status provides a mock function with no fields

type Migrator_Create_Call

type Migrator_Create_Call struct {
	*mock.Call
}

Migrator_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'

func (*Migrator_Create_Call) Return

func (*Migrator_Create_Call) Run

func (_c *Migrator_Create_Call) Run(run func(name string)) *Migrator_Create_Call

func (*Migrator_Create_Call) RunAndReturn

func (_c *Migrator_Create_Call) RunAndReturn(run func(string) error) *Migrator_Create_Call

type Migrator_Expecter

type Migrator_Expecter struct {
	// contains filtered or unexported fields
}

func (*Migrator_Expecter) Create

func (_e *Migrator_Expecter) Create(name interface{}) *Migrator_Create_Call

Create is a helper method to define mock.On call

  • name string

func (*Migrator_Expecter) Fresh

Fresh is a helper method to define mock.On call

func (*Migrator_Expecter) Reset

Reset is a helper method to define mock.On call

func (*Migrator_Expecter) Rollback

func (_e *Migrator_Expecter) Rollback(step interface{}, batch interface{}) *Migrator_Rollback_Call

Rollback is a helper method to define mock.On call

  • step int
  • batch int

func (*Migrator_Expecter) Run

Run is a helper method to define mock.On call

func (*Migrator_Expecter) Status

Status is a helper method to define mock.On call

type Migrator_Fresh_Call

type Migrator_Fresh_Call struct {
	*mock.Call
}

Migrator_Fresh_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Fresh'

func (*Migrator_Fresh_Call) Return

func (*Migrator_Fresh_Call) Run

func (_c *Migrator_Fresh_Call) Run(run func()) *Migrator_Fresh_Call

func (*Migrator_Fresh_Call) RunAndReturn

func (_c *Migrator_Fresh_Call) RunAndReturn(run func() error) *Migrator_Fresh_Call

type Migrator_Reset_Call

type Migrator_Reset_Call struct {
	*mock.Call
}

Migrator_Reset_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Reset'

func (*Migrator_Reset_Call) Return

func (*Migrator_Reset_Call) Run

func (_c *Migrator_Reset_Call) Run(run func()) *Migrator_Reset_Call

func (*Migrator_Reset_Call) RunAndReturn

func (_c *Migrator_Reset_Call) RunAndReturn(run func() error) *Migrator_Reset_Call

type Migrator_Rollback_Call

type Migrator_Rollback_Call struct {
	*mock.Call
}

Migrator_Rollback_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Rollback'

func (*Migrator_Rollback_Call) Return

func (*Migrator_Rollback_Call) Run

func (_c *Migrator_Rollback_Call) Run(run func(step int, batch int)) *Migrator_Rollback_Call

func (*Migrator_Rollback_Call) RunAndReturn

func (_c *Migrator_Rollback_Call) RunAndReturn(run func(int, int) error) *Migrator_Rollback_Call

type Migrator_Run_Call

type Migrator_Run_Call struct {
	*mock.Call
}

Migrator_Run_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Run'

func (*Migrator_Run_Call) Return

func (_c *Migrator_Run_Call) Return(_a0 error) *Migrator_Run_Call

func (*Migrator_Run_Call) Run

func (_c *Migrator_Run_Call) Run(run func()) *Migrator_Run_Call

func (*Migrator_Run_Call) RunAndReturn

func (_c *Migrator_Run_Call) RunAndReturn(run func() error) *Migrator_Run_Call

type Migrator_Status_Call

type Migrator_Status_Call struct {
	*mock.Call
}

Migrator_Status_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Status'

func (*Migrator_Status_Call) Return

func (*Migrator_Status_Call) Run

func (_c *Migrator_Status_Call) Run(run func()) *Migrator_Status_Call

func (*Migrator_Status_Call) RunAndReturn

func (_c *Migrator_Status_Call) RunAndReturn(run func() ([]migration.Status, error)) *Migrator_Status_Call

type Repository

type Repository struct {
	mock.Mock
}

Repository is an autogenerated mock type for the Repository type

func NewRepository

func NewRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *Repository

NewRepository creates a new instance of Repository. 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 (*Repository) CreateRepository

func (_m *Repository) CreateRepository() error

CreateRepository provides a mock function with no fields

func (*Repository) Delete

func (_m *Repository) Delete(_a0 string) error

Delete provides a mock function with given fields: _a0

func (*Repository) DeleteRepository

func (_m *Repository) DeleteRepository() error

DeleteRepository provides a mock function with no fields

func (*Repository) EXPECT

func (_m *Repository) EXPECT() *Repository_Expecter

func (*Repository) GetLast

func (_m *Repository) GetLast() ([]migration.File, error)

GetLast provides a mock function with no fields

func (*Repository) GetMigrations

func (_m *Repository) GetMigrations() ([]migration.File, error)

GetMigrations provides a mock function with no fields

func (*Repository) GetMigrationsByBatch

func (_m *Repository) GetMigrationsByBatch(batch int) ([]migration.File, error)

GetMigrationsByBatch provides a mock function with given fields: batch

func (*Repository) GetMigrationsByStep

func (_m *Repository) GetMigrationsByStep(steps int) ([]migration.File, error)

GetMigrationsByStep provides a mock function with given fields: steps

func (*Repository) GetNextBatchNumber

func (_m *Repository) GetNextBatchNumber() (int, error)

GetNextBatchNumber provides a mock function with no fields

func (*Repository) GetRan

func (_m *Repository) GetRan() ([]string, error)

GetRan provides a mock function with no fields

func (*Repository) Log

func (_m *Repository) Log(file string, batch int) error

Log provides a mock function with given fields: file, batch

func (*Repository) RepositoryExists

func (_m *Repository) RepositoryExists() bool

RepositoryExists provides a mock function with no fields

type Repository_CreateRepository_Call

type Repository_CreateRepository_Call struct {
	*mock.Call
}

Repository_CreateRepository_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateRepository'

func (*Repository_CreateRepository_Call) Return

func (*Repository_CreateRepository_Call) Run

func (*Repository_CreateRepository_Call) RunAndReturn

type Repository_DeleteRepository_Call

type Repository_DeleteRepository_Call struct {
	*mock.Call
}

Repository_DeleteRepository_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteRepository'

func (*Repository_DeleteRepository_Call) Return

func (*Repository_DeleteRepository_Call) Run

func (*Repository_DeleteRepository_Call) RunAndReturn

type Repository_Delete_Call

type Repository_Delete_Call struct {
	*mock.Call
}

Repository_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'

func (*Repository_Delete_Call) Return

func (*Repository_Delete_Call) Run

func (_c *Repository_Delete_Call) Run(run func(_a0 string)) *Repository_Delete_Call

func (*Repository_Delete_Call) RunAndReturn

func (_c *Repository_Delete_Call) RunAndReturn(run func(string) error) *Repository_Delete_Call

type Repository_Expecter

type Repository_Expecter struct {
	// contains filtered or unexported fields
}

func (*Repository_Expecter) CreateRepository

func (_e *Repository_Expecter) CreateRepository() *Repository_CreateRepository_Call

CreateRepository is a helper method to define mock.On call

func (*Repository_Expecter) Delete

func (_e *Repository_Expecter) Delete(_a0 interface{}) *Repository_Delete_Call

Delete is a helper method to define mock.On call

  • _a0 string

func (*Repository_Expecter) DeleteRepository

func (_e *Repository_Expecter) DeleteRepository() *Repository_DeleteRepository_Call

DeleteRepository is a helper method to define mock.On call

func (*Repository_Expecter) GetLast

GetLast is a helper method to define mock.On call

func (*Repository_Expecter) GetMigrations

GetMigrations is a helper method to define mock.On call

func (*Repository_Expecter) GetMigrationsByBatch

func (_e *Repository_Expecter) GetMigrationsByBatch(batch interface{}) *Repository_GetMigrationsByBatch_Call

GetMigrationsByBatch is a helper method to define mock.On call

  • batch int

func (*Repository_Expecter) GetMigrationsByStep

func (_e *Repository_Expecter) GetMigrationsByStep(steps interface{}) *Repository_GetMigrationsByStep_Call

GetMigrationsByStep is a helper method to define mock.On call

  • steps int

func (*Repository_Expecter) GetNextBatchNumber

func (_e *Repository_Expecter) GetNextBatchNumber() *Repository_GetNextBatchNumber_Call

GetNextBatchNumber is a helper method to define mock.On call

func (*Repository_Expecter) GetRan

GetRan is a helper method to define mock.On call

func (*Repository_Expecter) Log

func (_e *Repository_Expecter) Log(file interface{}, batch interface{}) *Repository_Log_Call

Log is a helper method to define mock.On call

  • file string
  • batch int

func (*Repository_Expecter) RepositoryExists

func (_e *Repository_Expecter) RepositoryExists() *Repository_RepositoryExists_Call

RepositoryExists is a helper method to define mock.On call

type Repository_GetLast_Call

type Repository_GetLast_Call struct {
	*mock.Call
}

Repository_GetLast_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLast'

func (*Repository_GetLast_Call) Return

func (*Repository_GetLast_Call) Run

func (_c *Repository_GetLast_Call) Run(run func()) *Repository_GetLast_Call

func (*Repository_GetLast_Call) RunAndReturn

func (_c *Repository_GetLast_Call) RunAndReturn(run func() ([]migration.File, error)) *Repository_GetLast_Call

type Repository_GetMigrationsByBatch_Call

type Repository_GetMigrationsByBatch_Call struct {
	*mock.Call
}

Repository_GetMigrationsByBatch_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetMigrationsByBatch'

func (*Repository_GetMigrationsByBatch_Call) Return

func (*Repository_GetMigrationsByBatch_Call) Run

func (*Repository_GetMigrationsByBatch_Call) RunAndReturn

type Repository_GetMigrationsByStep_Call

type Repository_GetMigrationsByStep_Call struct {
	*mock.Call
}

Repository_GetMigrationsByStep_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetMigrationsByStep'

func (*Repository_GetMigrationsByStep_Call) Return

func (*Repository_GetMigrationsByStep_Call) Run

func (*Repository_GetMigrationsByStep_Call) RunAndReturn

type Repository_GetMigrations_Call

type Repository_GetMigrations_Call struct {
	*mock.Call
}

Repository_GetMigrations_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetMigrations'

func (*Repository_GetMigrations_Call) Return

func (*Repository_GetMigrations_Call) Run

func (*Repository_GetMigrations_Call) RunAndReturn

type Repository_GetNextBatchNumber_Call

type Repository_GetNextBatchNumber_Call struct {
	*mock.Call
}

Repository_GetNextBatchNumber_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetNextBatchNumber'

func (*Repository_GetNextBatchNumber_Call) Return

func (*Repository_GetNextBatchNumber_Call) Run

func (*Repository_GetNextBatchNumber_Call) RunAndReturn

type Repository_GetRan_Call

type Repository_GetRan_Call struct {
	*mock.Call
}

Repository_GetRan_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetRan'

func (*Repository_GetRan_Call) Return

func (*Repository_GetRan_Call) Run

func (_c *Repository_GetRan_Call) Run(run func()) *Repository_GetRan_Call

func (*Repository_GetRan_Call) RunAndReturn

func (_c *Repository_GetRan_Call) RunAndReturn(run func() ([]string, error)) *Repository_GetRan_Call

type Repository_Log_Call

type Repository_Log_Call struct {
	*mock.Call
}

Repository_Log_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Log'

func (*Repository_Log_Call) Return

func (*Repository_Log_Call) Run

func (_c *Repository_Log_Call) Run(run func(file string, batch int)) *Repository_Log_Call

func (*Repository_Log_Call) RunAndReturn

func (_c *Repository_Log_Call) RunAndReturn(run func(string, int) error) *Repository_Log_Call

type Repository_RepositoryExists_Call

type Repository_RepositoryExists_Call struct {
	*mock.Call
}

Repository_RepositoryExists_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RepositoryExists'

func (*Repository_RepositoryExists_Call) Return

func (*Repository_RepositoryExists_Call) Run

func (*Repository_RepositoryExists_Call) RunAndReturn

Jump to

Keyboard shortcuts

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