mocks

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2026 License: MIT Imports: 3 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 interface {
	mock.TestingT
	Cleanup(func())
}) *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. The first argument is typically a *testing.T value.

func (*Driver) Close

func (_m *Driver) Close() error

Close provides a mock function with no fields

func (*Driver) First

func (_m *Driver) First() (uint, error)

First provides a mock function with no fields

func (*Driver) Next

func (_m *Driver) Next(version uint) (uint, error)

Next provides a mock function with given fields: version

func (*Driver) Open

func (_m *Driver) Open(url string) (source.Driver, error)

Open provides a mock function with given fields: url

func (*Driver) Prev

func (_m *Driver) Prev(version uint) (uint, error)

Prev provides a mock function with given fields: version

func (*Driver) ReadDown

func (_m *Driver) ReadDown(version uint) (io.ReadCloser, string, error)

ReadDown provides a mock function with given fields: version

func (*Driver) ReadUp

func (_m *Driver) ReadUp(version uint) (io.ReadCloser, string, error)

ReadUp provides a mock function with given fields: version

type ReadCloser

type ReadCloser struct {
	mock.Mock
}

ReadCloser is an autogenerated mock type for the ReadCloser type

func NewReadCloser

func NewReadCloser(t interface {
	mock.TestingT
	Cleanup(func())
}) *ReadCloser

NewReadCloser creates a new instance of ReadCloser. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ReadCloser) Close

func (_m *ReadCloser) Close() error

Close provides a mock function with no fields

func (*ReadCloser) Read

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

Read 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