mocks

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory

type Factory struct {
	mock.Mock
}

Factory is an autogenerated mock type for the Factory type

func NewFactory

func NewFactory(t interface {
	mock.TestingT
	Cleanup(func())
}) *Factory

NewFactory creates a new instance of Factory. 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 (*Factory) NewWriter

func (_m *Factory) NewWriter(rw http.ResponseWriter) fxrf.Writer

NewWriter provides a mock function with given fields: rw

type Writer

type Writer struct {
	mock.Mock
}

Writer is an autogenerated mock type for the Writer type

func NewWriter

func NewWriter(t interface {
	mock.TestingT
	Cleanup(func())
}) *Writer

NewWriter creates a new instance of Writer. 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 (*Writer) SetLogger

func (_m *Writer) SetLogger(logger *zap.Logger)

SetLogger provides a mock function with given fields: logger

func (*Writer) WriteError

func (_m *Writer) WriteError(ctx context.Context, msg string, cause error, opts ...fxrf.ResponseBuildOption) error

WriteError provides a mock function with given fields: ctx, msg, cause, opts

func (*Writer) WriteFail

func (_m *Writer) WriteFail(ctx context.Context, data interface{}, opts ...fxrf.ResponseBuildOption) error

WriteFail provides a mock function with given fields: ctx, data, opts

func (*Writer) WriteSuccess

func (_m *Writer) WriteSuccess(ctx context.Context, payload interface{}, opts ...fxrf.ResponseBuildOption) error

WriteSuccess provides a mock function with given fields: ctx, payload, opts

Jump to

Keyboard shortcuts

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