mocks

package
v1.1.30 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Seeder

type Seeder struct {
	mock.Mock
}

Seeder is an autogenerated mock type for the Seeder type

func NewSeeder

func NewSeeder(t interface {
	mock.TestingT
	Cleanup(func())
}) *Seeder

NewSeeder creates a new instance of Seeder. 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 (*Seeder) EXPECT

func (_m *Seeder) EXPECT() *Seeder_Expecter

func (*Seeder) Seed

func (_m *Seeder) Seed(env terra.Environment, seedOptions seed.SeedOptions) error

Seed provides a mock function with given fields: env, seedOptions

func (*Seeder) Unseed

func (_m *Seeder) Unseed(env terra.Environment, unseedOptions seed.UnseedOptions) error

Unseed provides a mock function with given fields: env, unseedOptions

type Seeder_Expecter

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

func (*Seeder_Expecter) Seed

func (_e *Seeder_Expecter) Seed(env interface{}, seedOptions interface{}) *Seeder_Seed_Call

Seed is a helper method to define mock.On call

  • env terra.Environment
  • seedOptions seed.SeedOptions

func (*Seeder_Expecter) Unseed

func (_e *Seeder_Expecter) Unseed(env interface{}, unseedOptions interface{}) *Seeder_Unseed_Call

Unseed is a helper method to define mock.On call

  • env terra.Environment
  • unseedOptions seed.UnseedOptions

type Seeder_Seed_Call

type Seeder_Seed_Call struct {
	*mock.Call
}

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

func (*Seeder_Seed_Call) Return

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

func (*Seeder_Seed_Call) Run

func (_c *Seeder_Seed_Call) Run(run func(env terra.Environment, seedOptions seed.SeedOptions)) *Seeder_Seed_Call

func (*Seeder_Seed_Call) RunAndReturn

type Seeder_Unseed_Call

type Seeder_Unseed_Call struct {
	*mock.Call
}

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

func (*Seeder_Unseed_Call) Return

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

func (*Seeder_Unseed_Call) Run

func (_c *Seeder_Unseed_Call) Run(run func(env terra.Environment, unseedOptions seed.UnseedOptions)) *Seeder_Unseed_Call

func (*Seeder_Unseed_Call) RunAndReturn

Jump to

Keyboard shortcuts

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