mocks

package
v0.0.0-...-8cd3384 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2021 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Piece

type Piece struct {
	mock.Mock
}

Piece is an autogenerated mock type for the Piece type

func (*Piece) Downloaded

func (_m *Piece) Downloaded() bool

Downloaded provides a mock function with given fields:

func (*Piece) GetBlocks

func (_m *Piece) GetBlocks() []*piece.Block

GetBlocks provides a mock function with given fields:

func (*Piece) GetDownloader

func (_m *Piece) GetDownloader() string

GetDownloader provides a mock function with given fields:

func (*Piece) GetIdx

func (_m *Piece) GetIdx() int

GetIdx provides a mock function with given fields:

func (*Piece) GetLength

func (_m *Piece) GetLength() int64

GetLength provides a mock function with given fields:

func (*Piece) GetStatus

func (_m *Piece) GetStatus() piece.PieceStatus

GetStatus provides a mock function with given fields:

func (*Piece) SetDownloader

func (_m *Piece) SetDownloader(_a0 string)

SetDownloader provides a mock function with given fields: _a0

func (*Piece) SetStatus

func (_m *Piece) SetStatus(_a0 piece.PieceStatus)

SetStatus provides a mock function with given fields: _a0

type SafePieces

type SafePieces struct {
	mock.Mock
}

SafePieces is an autogenerated mock type for the SafePieces type

func (*SafePieces) Data

func (_m *SafePieces) Data() map[int]piece.Piece

Data provides a mock function with given fields:

func (*SafePieces) Get

func (_m *SafePieces) Get(_a0 int) piece.Piece

Get provides a mock function with given fields: _a0

func (*SafePieces) Len

func (_m *SafePieces) Len() int

Len provides a mock function with given fields:

func (*SafePieces) Put

func (_m *SafePieces) Put(_a0 piece.Piece)

Put provides a mock function with given fields: _a0

func (*SafePieces) TryToReserve

func (_m *SafePieces) TryToReserve(_a0 int, _a1 string) bool

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

Jump to

Keyboard shortcuts

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