mocks

package
v0.0.0-...-e2b4020 Latest Latest
Warning

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

Go to latest
Published: May 31, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ResponseWriter

type ResponseWriter struct {
	mock.Mock
}

func (*ResponseWriter) Header

func (m *ResponseWriter) Header() http.Header

func (*ResponseWriter) Write

func (m *ResponseWriter) Write(bytes []byte) (int, error)

func (*ResponseWriter) WriteHeader

func (m *ResponseWriter) WriteHeader(status int)

type View

type View struct {
	mock.Mock
}

func (*View) ComposeSearchData

func (m *View) ComposeSearchData(ctx context.Context, w *domain.Workout) ([]byte, error)

func (*View) ContentType

func (m *View) ContentType() string

func (*View) Error

func (m *View) Error(ctx context.Context, msg string) ([]byte, error)

func (*View) Index

func (m *View) Index() ([]byte, error)

type WorkoutService

type WorkoutService struct {
	mock.Mock
}

func (*WorkoutService) CreateWorkout

func (s *WorkoutService) CreateWorkout(ctx context.Context, query string) (*domain.Workout, error)

Jump to

Keyboard shortcuts

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