mocks

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2021 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 ExistsFunc

type ExistsFunc struct {
	mock.Mock
}

ExistsFunc is an autogenerated mock type for the ExistsFunc type

func (*ExistsFunc) Execute

func (_m *ExistsFunc) Execute(fileName string) bool

Execute provides a mock function with given fields: fileName

type Imager

type Imager struct {
	mock.Mock
}

Imager is an autogenerated mock type for the Imager type

func (*Imager) Decode

func (_m *Imager) Decode() (image.Image, error)

Decode provides a mock function with given fields:

func (*Imager) Save

func (_m *Imager) Save(_a0 image.Image, path string, comp int) error

Save provides a mock function with given fields: _a0, path, comp

type Library

type Library struct {
	mock.Mock
}

Library is an autogenerated mock type for the Library type

func (*Library) Delete

func (_m *Library) Delete(item domain.Media)

Delete provides a mock function with given fields: item

func (*Library) Serve

func (_m *Library) Serve(_a0 domain.Media, path string, acceptWebP bool) ([]byte, domain.Mime, error)

Serve provides a mock function with given fields: _a0, path, acceptWebP

func (*Library) Upload

func (_m *Library) Upload(file *multipart.FileHeader) (domain.Media, error)

Upload provides a mock function with given fields: file

func (*Library) Validate

func (_m *Library) Validate(file *multipart.FileHeader) error

Validate provides a mock function with given fields: file

type Resizer

type Resizer struct {
	mock.Mock
}

Resizer is an autogenerated mock type for the Resizer type

func (*Resizer) Resize

func (_m *Resizer) Resize(imager media.Imager, dest string, _a2 domain.MediaSize, comp int) error

Resize provides a mock function with given fields: imager, dest, _a2, comp

Jump to

Keyboard shortcuts

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