mockfileutil

package
v0.0.0-...-6e5c2bb Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileHelper

type FileHelper struct {
	mock.Mock
}

FileHelper is an autogenerated mock type for the FileHelper type

func NewFileHelper

func NewFileHelper(t mockConstructorTestingTNewFileHelper) *FileHelper

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

func (*FileHelper) CreateDirIfNotExist

func (_m *FileHelper) CreateDirIfNotExist(location string) error

CreateDirIfNotExist provides a mock function with given fields: location

type FileUrlHelper

type FileUrlHelper struct {
	mock.Mock
}

FileUrlHelper is an autogenerated mock type for the FileUrlHelper type

func NewFileUrlHelper

func NewFileUrlHelper(t mockConstructorTestingTNewFileUrlHelper) *FileUrlHelper

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

func (*FileUrlHelper) GetPathFromUrl

func (_m *FileUrlHelper) GetPathFromUrl(location string, preserveFilename bool) (string, error)

GetPathFromUrl provides a mock function with given fields: location, preserveFilename

func (*FileUrlHelper) GetScheme

func (_m *FileUrlHelper) GetScheme(location string) (string, error)

GetScheme provides a mock function with given fields: location

func (*FileUrlHelper) OpenUrl

func (_m *FileUrlHelper) OpenUrl(location string) ([]byte, error)

OpenUrl provides a mock function with given fields: location

func (*FileUrlHelper) OpenUrlWithBaseDir

func (_m *FileUrlHelper) OpenUrlWithBaseDir(baseDir string, location string) ([]byte, error)

OpenUrlWithBaseDir provides a mock function with given fields: baseDir, location

func (*FileUrlHelper) UrlWithBaseDir

func (_m *FileUrlHelper) UrlWithBaseDir(baseDir string, location string) (string, error)

UrlWithBaseDir provides a mock function with given fields: baseDir, location

func (*FileUrlHelper) WriteUrl

func (_m *FileUrlHelper) WriteUrl(location string, data []byte) error

WriteUrl provides a mock function with given fields: location, data

func (*FileUrlHelper) WriteUrlWithBaseDir

func (_m *FileUrlHelper) WriteUrlWithBaseDir(baseDir string, location string, data []byte) error

WriteUrlWithBaseDir provides a mock function with given fields: baseDir, location, data

Jump to

Keyboard shortcuts

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