mocks

package
v0.0.0-...-354f3a1 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2022 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 Email

type Email struct {
	mock.Mock
}

Email is an autogenerated mock type for the Email type

func (*Email) Value

func (_m *Email) Value() string

Value provides a mock function with given fields:

type ID

type ID struct {
	mock.Mock
}

ID is an autogenerated mock type for the ID type

func (*ID) IsEmpty

func (_m *ID) IsEmpty() bool

IsEmpty provides a mock function with given fields:

func (*ID) Value

func (_m *ID) Value() string

Value provides a mock function with given fields:

type IDGenerator

type IDGenerator struct {
	mock.Mock
}

IDGenerator is an autogenerated mock type for the IDGenerator type

func (*IDGenerator) From

func (_m *IDGenerator) From(value string) (entity.ID, error)

From provides a mock function with given fields: value

func (*IDGenerator) Generate

func (_m *IDGenerator) Generate() entity.ID

Generate provides a mock function with given fields:

type IDManager

type IDManager struct {
	mock.Mock
}

IDManager is an autogenerated mock type for the IDManager type

func (*IDManager) From

func (_m *IDManager) From(value string) (entity.ID, error)

From provides a mock function with given fields: value

func (*IDManager) Generate

func (_m *IDManager) Generate() entity.ID

Generate provides a mock function with given fields:

func (*IDManager) Validate

func (_m *IDManager) Validate(value string) error

Validate provides a mock function with given fields: value

type IDValidator

type IDValidator struct {
	mock.Mock
}

IDValidator is an autogenerated mock type for the IDValidator type

func (*IDValidator) Validate

func (_m *IDValidator) Validate(value string) error

Validate provides a mock function with given fields: value

type User

type User struct {
	mock.Mock
}

User is an autogenerated mock type for the User type

func (*User) Email

func (_m *User) Email() entity.Email

Email provides a mock function with given fields:

func (*User) Name

func (_m *User) Name() string

Name provides a mock function with given fields:

func (*User) UserID

func (_m *User) UserID() entity.UserID

UserID provides a mock function with given fields:

type UserID

type UserID struct {
	mock.Mock
}

UserID is an autogenerated mock type for the UserID type

func (*UserID) IsEmpty

func (_m *UserID) IsEmpty() bool

IsEmpty provides a mock function with given fields:

func (*UserID) Value

func (_m *UserID) Value() string

Value provides a mock function with given fields:

type UsersReadWriter

type UsersReadWriter struct {
	mock.Mock
}

UsersReadWriter is an autogenerated mock type for the UsersReadWriter type

func (*UsersReadWriter) Delete

func (_m *UsersReadWriter) Delete(id entity.UserID) error

Delete provides a mock function with given fields: id

func (*UsersReadWriter) FindAll

func (_m *UsersReadWriter) FindAll() ([]entity.User, error)

FindAll provides a mock function with given fields:

func (*UsersReadWriter) FindByID

func (_m *UsersReadWriter) FindByID(id entity.UserID) (entity.User, error)

FindByID provides a mock function with given fields: id

func (*UsersReadWriter) Insert

func (_m *UsersReadWriter) Insert(user entity.User) (entity.User, error)

Insert provides a mock function with given fields: user

type UsersReader

type UsersReader struct {
	mock.Mock
}

UsersReader is an autogenerated mock type for the UsersReader type

func (*UsersReader) FindAll

func (_m *UsersReader) FindAll() ([]entity.User, error)

FindAll provides a mock function with given fields:

func (*UsersReader) FindByID

func (_m *UsersReader) FindByID(id entity.UserID) (entity.User, error)

FindByID provides a mock function with given fields: id

type UsersWriter

type UsersWriter struct {
	mock.Mock
}

UsersWriter is an autogenerated mock type for the UsersWriter type

func (*UsersWriter) Delete

func (_m *UsersWriter) Delete(id entity.UserID) error

Delete provides a mock function with given fields: id

func (*UsersWriter) Insert

func (_m *UsersWriter) Insert(user entity.User) (entity.User, error)

Insert provides a mock function with given fields: user

Jump to

Keyboard shortcuts

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