mocks

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2023 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 ChunkDownloader

type ChunkDownloader struct {
	mock.Mock
}

ChunkDownloader is an autogenerated mock type for the chunkDownloader type

func NewChunkDownloader

func NewChunkDownloader(t interface {
	mock.TestingT
	Cleanup(func())
}) *ChunkDownloader

NewChunkDownloader creates a new instance of ChunkDownloader. 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 (*ChunkDownloader) Download

func (_m *ChunkDownloader) Download(ctx context.Context, url string, fileName string, chunks []chunker.Chunk) ([]chunker.Chunk, error)

Download provides a mock function with given fields: ctx, url, fileName, chunks

Jump to

Keyboard shortcuts

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