mocks

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2022 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 Driver

type Driver struct {
	mock.Mock
}

Driver is an autogenerated mock type for the Driver type

func NewDriver

func NewDriver(t NewDriverT) *Driver

NewDriver creates a new instance of Driver. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Driver) AllDirectories added in v1.6.1

func (_m *Driver) AllDirectories(path string) ([]string, error)

AllDirectories provides a mock function with given fields: path

func (*Driver) AllFiles added in v1.6.1

func (_m *Driver) AllFiles(path string) ([]string, error)

AllFiles provides a mock function with given fields: path

func (*Driver) Copy

func (_m *Driver) Copy(oldFile string, newFile string) error

Copy provides a mock function with given fields: oldFile, newFile

func (*Driver) Delete

func (_m *Driver) Delete(file ...string) error

Delete provides a mock function with given fields: file

func (*Driver) DeleteDirectory

func (_m *Driver) DeleteDirectory(directory string) error

DeleteDirectory provides a mock function with given fields: directory

func (*Driver) Directories added in v1.6.1

func (_m *Driver) Directories(path string) ([]string, error)

Directories provides a mock function with given fields: path

func (*Driver) Exists

func (_m *Driver) Exists(file string) bool

Exists provides a mock function with given fields: file

func (*Driver) Files added in v1.6.1

func (_m *Driver) Files(path string) ([]string, error)

Files provides a mock function with given fields: path

func (*Driver) Get

func (_m *Driver) Get(file string) (string, error)

Get provides a mock function with given fields: file

func (*Driver) MakeDirectory

func (_m *Driver) MakeDirectory(directory string) error

MakeDirectory provides a mock function with given fields: directory

func (*Driver) Missing

func (_m *Driver) Missing(file string) bool

Missing provides a mock function with given fields: file

func (*Driver) Move

func (_m *Driver) Move(oldFile string, newFile string) error

Move provides a mock function with given fields: oldFile, newFile

func (*Driver) Path

func (_m *Driver) Path(file string) string

Path provides a mock function with given fields: file

func (*Driver) Put

func (_m *Driver) Put(file string, content string) error

Put provides a mock function with given fields: file, content

func (*Driver) PutFile

func (_m *Driver) PutFile(path string, source filesystem.File) (string, error)

PutFile provides a mock function with given fields: path, source

func (*Driver) PutFileAs

func (_m *Driver) PutFileAs(path string, source filesystem.File, name string) (string, error)

PutFileAs provides a mock function with given fields: path, source, name

func (*Driver) Size

func (_m *Driver) Size(file string) (int64, error)

Size provides a mock function with given fields: file

func (*Driver) TemporaryUrl

func (_m *Driver) TemporaryUrl(file string, _a1 time.Time) (string, error)

TemporaryUrl provides a mock function with given fields: file, _a1

func (*Driver) Url

func (_m *Driver) Url(file string) string

Url provides a mock function with given fields: file

func (*Driver) WithContext

func (_m *Driver) WithContext(ctx context.Context) filesystem.Driver

WithContext provides a mock function with given fields: ctx

type File

type File struct {
	mock.Mock
}

File is an autogenerated mock type for the File type

func NewFile

func NewFile(t NewFileT) *File

NewFile creates a new instance of File. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*File) Disk

func (_m *File) Disk(disk string) filesystem.File

Disk provides a mock function with given fields: disk

func (*File) Extension

func (_m *File) Extension() (string, error)

Extension provides a mock function with given fields:

func (*File) File

func (_m *File) File() string

File provides a mock function with given fields:

func (*File) GetClientOriginalExtension added in v1.6.1

func (_m *File) GetClientOriginalExtension() string

GetClientOriginalExtension provides a mock function with given fields:

func (*File) GetClientOriginalName added in v1.6.1

func (_m *File) GetClientOriginalName() string

GetClientOriginalName provides a mock function with given fields:

func (*File) HashName

func (_m *File) HashName(path ...string) string

HashName provides a mock function with given fields: path

func (*File) Store

func (_m *File) Store(path string) (string, error)

Store provides a mock function with given fields: path

func (*File) StoreAs

func (_m *File) StoreAs(path string, name string) (string, error)

StoreAs provides a mock function with given fields: path, name

type NewDriverT

type NewDriverT interface {
	mock.TestingT
	Cleanup(func())
}

type NewFileT

type NewFileT interface {
	mock.TestingT
	Cleanup(func())
}

type NewStorageT

type NewStorageT interface {
	mock.TestingT
	Cleanup(func())
}

type Storage

type Storage struct {
	mock.Mock
}

Storage is an autogenerated mock type for the Storage type

func NewStorage

func NewStorage(t NewStorageT) *Storage

NewStorage creates a new instance of Storage. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Storage) AllDirectories added in v1.6.1

func (_m *Storage) AllDirectories(path string) ([]string, error)

AllDirectories provides a mock function with given fields: path

func (*Storage) AllFiles added in v1.6.1

func (_m *Storage) AllFiles(path string) ([]string, error)

AllFiles provides a mock function with given fields: path

func (*Storage) Copy

func (_m *Storage) Copy(oldFile string, newFile string) error

Copy provides a mock function with given fields: oldFile, newFile

func (*Storage) Delete

func (_m *Storage) Delete(file ...string) error

Delete provides a mock function with given fields: file

func (*Storage) DeleteDirectory

func (_m *Storage) DeleteDirectory(directory string) error

DeleteDirectory provides a mock function with given fields: directory

func (*Storage) Directories added in v1.6.1

func (_m *Storage) Directories(path string) ([]string, error)

Directories provides a mock function with given fields: path

func (*Storage) Disk

func (_m *Storage) Disk(disk string) filesystem.Driver

Disk provides a mock function with given fields: disk

func (*Storage) Exists

func (_m *Storage) Exists(file string) bool

Exists provides a mock function with given fields: file

func (*Storage) Files added in v1.6.1

func (_m *Storage) Files(path string) ([]string, error)

Files provides a mock function with given fields: path

func (*Storage) Get

func (_m *Storage) Get(file string) (string, error)

Get provides a mock function with given fields: file

func (*Storage) MakeDirectory

func (_m *Storage) MakeDirectory(directory string) error

MakeDirectory provides a mock function with given fields: directory

func (*Storage) Missing

func (_m *Storage) Missing(file string) bool

Missing provides a mock function with given fields: file

func (*Storage) Move

func (_m *Storage) Move(oldFile string, newFile string) error

Move provides a mock function with given fields: oldFile, newFile

func (*Storage) Path

func (_m *Storage) Path(file string) string

Path provides a mock function with given fields: file

func (*Storage) Put

func (_m *Storage) Put(file string, content string) error

Put provides a mock function with given fields: file, content

func (*Storage) PutFile

func (_m *Storage) PutFile(path string, source filesystem.File) (string, error)

PutFile provides a mock function with given fields: path, source

func (*Storage) PutFileAs

func (_m *Storage) PutFileAs(path string, source filesystem.File, name string) (string, error)

PutFileAs provides a mock function with given fields: path, source, name

func (*Storage) Size

func (_m *Storage) Size(file string) (int64, error)

Size provides a mock function with given fields: file

func (*Storage) TemporaryUrl

func (_m *Storage) TemporaryUrl(file string, _a1 time.Time) (string, error)

TemporaryUrl provides a mock function with given fields: file, _a1

func (*Storage) Url

func (_m *Storage) Url(file string) string

Url provides a mock function with given fields: file

func (*Storage) WithContext

func (_m *Storage) WithContext(ctx context.Context) filesystem.Driver

WithContext provides a mock function with given fields: ctx

Jump to

Keyboard shortcuts

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