mocks

package
v0.0.0-...-2c3d6b8 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BookmarkOperator

type BookmarkOperator struct {
	mock.Mock
}

BookmarkOperator is an autogenerated mock type for the BookmarkOperator type

func NewBookmarkOperator

func NewBookmarkOperator(t mockConstructorTestingTNewBookmarkOperator) *BookmarkOperator

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

func (*BookmarkOperator) GetBookmarks

func (_m *BookmarkOperator) GetBookmarks(_a0 context.Context) ([]bookmark.Bookmark, error)

GetBookmarks provides a mock function with given fields: _a0

type ChmodRevertFunc

type ChmodRevertFunc struct {
	mock.Mock
}

ChmodRevertFunc is an autogenerated mock type for the ChmodRevertFunc type

func NewChmodRevertFunc

func NewChmodRevertFunc(t mockConstructorTestingTNewChmodRevertFunc) *ChmodRevertFunc

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

func (*ChmodRevertFunc) Execute

func (_m *ChmodRevertFunc) Execute(filename string) (fs.FileMode, error)

Execute provides a mock function with given fields: filename

type DBConnection

type DBConnection struct {
	mock.Mock
}

DBConnection is an autogenerated mock type for the DBConnection type

func NewDBConnection

func NewDBConnection(t mockConstructorTestingTNewDBConnection) *DBConnection

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

func (*DBConnection) Query

func (_m *DBConnection) Query(query string, args ...interface{}) (*sql.Rows, error)

Query provides a mock function with given fields: query, args

type Encoder

type Encoder struct {
	mock.Mock
}

Encoder is an autogenerated mock type for the Encoder type

func NewEncoder

func NewEncoder(t mockConstructorTestingTNewEncoder) *Encoder

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

func (*Encoder) Encode

func (_m *Encoder) Encode(_a0 []bookmark.Bookmark) error

Encode provides a mock function with given fields: _a0

func (*Encoder) Filename

func (_m *Encoder) Filename() string

Filename provides a mock function with given fields:

func (*Encoder) String

func (_m *Encoder) String() string

String provides a mock function with given fields:

type File

type File struct {
	mock.Mock
}

File is an autogenerated mock type for the File type

func NewFile

func NewFile(t mockConstructorTestingTNewFile) *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) Close

func (_m *File) Close() error

Close provides a mock function with given fields:

func (*File) Name

func (_m *File) Name() string

Name provides a mock function with given fields:

func (*File) Read

func (_m *File) Read(p []byte) (int, error)

Read provides a mock function with given fields: p

func (*File) Write

func (_m *File) Write(p []byte) (int, error)

Write provides a mock function with given fields: p

type FileOperator

type FileOperator struct {
	mock.Mock
}

FileOperator is an autogenerated mock type for the FileOperator type

func NewFileOperator

func NewFileOperator(t mockConstructorTestingTNewFileOperator) *FileOperator

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

func (*FileOperator) Chmod

func (_m *FileOperator) Chmod(filename string, permission int) (files.ChmodRevertFunc, error)

Chmod provides a mock function with given fields: filename, permission

func (*FileOperator) Copy

func (_m *FileOperator) Copy(src string, dest string) error

Copy provides a mock function with given fields: src, dest

func (*FileOperator) Delete

func (_m *FileOperator) Delete(filename string) error

Delete provides a mock function with given fields: filename

func (*FileOperator) Open

func (_m *FileOperator) Open(filename string) (files.File, error)

Open provides a mock function with given fields: filename

type Filter

type Filter struct {
	mock.Mock
}

Filter is an autogenerated mock type for the Filter type

func NewFilter

func NewFilter(t mockConstructorTestingTNewFilter) *Filter

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

func (*Filter) Apply

func (_m *Filter) Apply(_a0 context.Context, _a1 []bookmark.Bookmark) ([]bookmark.Bookmark, error)

Apply provides a mock function with given fields: _a0, _a1

func (*Filter) String

func (_m *Filter) String() string

String provides a mock function with given fields:

type Joinables

type Joinables struct {
	mock.Mock
}

Joinables is an autogenerated mock type for the Joinables type

func NewJoinables

func NewJoinables(t mockConstructorTestingTNewJoinables) *Joinables

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

func (*Joinables) String

func (_m *Joinables) String() string

String provides a mock function with given fields:

type Logger

type Logger struct {
	mock.Mock
}

Logger is an autogenerated mock type for the Logger type

func NewLogger

func NewLogger(t mockConstructorTestingTNewLogger) *Logger

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

func (*Logger) Debug

func (_m *Logger) Debug() *zerolog.Event

Debug provides a mock function with given fields:

func (*Logger) Error

func (_m *Logger) Error() *zerolog.Event

Error provides a mock function with given fields:

func (*Logger) Fatal

func (_m *Logger) Fatal() *zerolog.Event

Fatal provides a mock function with given fields:

func (*Logger) Info

func (_m *Logger) Info() *zerolog.Event

Info provides a mock function with given fields:

func (*Logger) Warn

func (_m *Logger) Warn() *zerolog.Event

Warn provides a mock function with given fields:

func (*Logger) With

func (_m *Logger) With() zerolog.Context

With provides a mock function with given fields:

type NonFileWriter

type NonFileWriter struct {
	mock.Mock
}

NonFileWriter is an autogenerated mock type for the NonFileWriter type

func NewNonFileWriter

func NewNonFileWriter(t mockConstructorTestingTNewNonFileWriter) *NonFileWriter

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

func (*NonFileWriter) Write

func (_m *NonFileWriter) Write(p []byte) (int, error)

Write provides a mock function with given fields: p

Jump to

Keyboard shortcuts

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