Documentation ¶
Index ¶
- type CreateCmd
- type FakePhoneBuilder
- type MockService
- func (_m *MockService) Create(ctx context.Context, cmd *CreateCmd) (*Phone, error)
- func (_m *MockService) DeleteContactPhone(ctx context.Context, contact *contacts.Contact, phoneID uuid.UUID) error
- func (_m *MockService) GetAllForContact(ctx context.Context, contact *contacts.Contact, cmd *sqlstorage.PaginateCmd) ([]Phone, error)
- type Phone
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakePhoneBuilder ¶
type FakePhoneBuilder struct {
// contains filtered or unexported fields
}
func NewFakePhone ¶
func NewFakePhone(t testing.TB) *FakePhoneBuilder
func (*FakePhoneBuilder) Build ¶
func (f *FakePhoneBuilder) Build() *Phone
func (*FakePhoneBuilder) WithContact ¶
func (f *FakePhoneBuilder) WithContact(contact *contacts.Contact) *FakePhoneBuilder
type MockService ¶
MockService is an autogenerated mock type for the Service type
func NewMockService ¶
func NewMockService(t interface { mock.TestingT Cleanup(func()) }) *MockService
NewMockService creates a new instance of MockService. 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 (*MockService) DeleteContactPhone ¶
func (_m *MockService) DeleteContactPhone(ctx context.Context, contact *contacts.Contact, phoneID uuid.UUID) error
DeleteContactPhone provides a mock function with given fields: ctx, contact, phoneID
func (*MockService) GetAllForContact ¶
func (_m *MockService) GetAllForContact(ctx context.Context, contact *contacts.Contact, cmd *sqlstorage.PaginateCmd) ([]Phone, error)
GetAllForContact provides a mock function with given fields: ctx, contact, cmd
type Phone ¶
type Phone struct {
// contains filtered or unexported fields
}
func (Phone) ISO2RegionCode ¶
func (Phone) InternationalFormatted ¶
func (Phone) NationalFormatted ¶
type Service ¶
Click to show internal directories.
Click to hide internal directories.