mocks

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2023 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Datalog

type Datalog struct {
	mock.Mock
}

Datalog is an autogenerated mock type for the Datalog type

func NewDatalog

func NewDatalog(t mockConstructorTestingTNewDatalog) *Datalog

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

func (*Datalog) Init

func (_m *Datalog) Init() error

Init provides a mock function with given fields:

func (*Datalog) ReadFileFrom

func (_m *Datalog) ReadFileFrom(buf []byte, maxSize int, segmentId int64, startOffset int64, maxRecords int, topic *types.TopicDataId) ([]byte, error)

ReadFileFrom provides a mock function with given fields: buf, maxSize, segmentId, startOffset, maxRecords, topic

func (*Datalog) ReadProducerOffset

func (_m *Datalog) ReadProducerOffset(topicId *types.TopicDataId) (int64, error)

ReadProducerOffset provides a mock function with given fields: topicId

func (*Datalog) ReleaseStreamBuffer

func (_m *Datalog) ReleaseStreamBuffer(buf []byte)

ReleaseStreamBuffer provides a mock function with given fields: buf

func (*Datalog) SegmentFileList

func (_m *Datalog) SegmentFileList(topic *types.TopicDataId, maxOffset int64) ([]int64, error)

SegmentFileList provides a mock function with given fields: topic, maxOffset

func (*Datalog) StreamBuffer

func (_m *Datalog) StreamBuffer() []byte

StreamBuffer provides a mock function with given fields:

Jump to

Keyboard shortcuts

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