mocks

package
v0.0.0-...-b045374 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package mocks provides test doubles for the SendGrid email service.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockEmailService

type MockEmailService struct {
	mock.Mock
}

MockEmailService is an autogenerated mock type for the EmailService type

func NewMockEmailService

func NewMockEmailService(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockEmailService

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

func (*MockEmailService) GetSendGridClient

func (_mock *MockEmailService) GetSendGridClient() *sendgrid.Client

GetSendGridClient provides a mock function for the type MockEmailService

func (*MockEmailService) Send

Send provides a mock function for the type MockEmailService

type MockEmailService_Expecter

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

func (*MockEmailService_Expecter) GetSendGridClient

GetSendGridClient is a helper method to define mock.On call

func (*MockEmailService_Expecter) Send

func (_e *MockEmailService_Expecter) Send(ctx interface{}, req interface{}) *MockEmailService_Send_Call

Send is a helper method to define mock.On call

  • ctx
  • req

type MockEmailService_GetSendGridClient_Call

type MockEmailService_GetSendGridClient_Call struct {
	*mock.Call
}

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

func (*MockEmailService_GetSendGridClient_Call) Return

func (*MockEmailService_GetSendGridClient_Call) Run

func (*MockEmailService_GetSendGridClient_Call) RunAndReturn

type MockEmailService_Send_Call

type MockEmailService_Send_Call struct {
	*mock.Call
}

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

func (*MockEmailService_Send_Call) Return

func (*MockEmailService_Send_Call) Run

func (*MockEmailService_Send_Call) RunAndReturn

Jump to

Keyboard shortcuts

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