bitcask: github.com/prologic/bitcask/internal/mocks Index | Files

package mocks

import "github.com/prologic/bitcask/internal/mocks"

Index

Package Files

datafile.go indexer.go

type Datafile Uses

type Datafile struct {
    mock.Mock
}

Datafile is an autogenerated mock type for the Datafile type

func (*Datafile) Close Uses

func (_m *Datafile) Close() error

Close provides a mock function with given fields:

func (*Datafile) FileID Uses

func (_m *Datafile) FileID() int

FileID provides a mock function with given fields:

func (*Datafile) Name Uses

func (_m *Datafile) Name() string

Name provides a mock function with given fields:

func (*Datafile) Read Uses

func (_m *Datafile) Read() (internal.Entry, int64, error)

Read provides a mock function with given fields:

func (*Datafile) ReadAt Uses

func (_m *Datafile) ReadAt(index int64, size int64) (internal.Entry, error)

ReadAt provides a mock function with given fields: index, size

func (*Datafile) Size Uses

func (_m *Datafile) Size() int64

Size provides a mock function with given fields:

func (*Datafile) Sync Uses

func (_m *Datafile) Sync() error

Sync provides a mock function with given fields:

func (*Datafile) Write Uses

func (_m *Datafile) Write(_a0 internal.Entry) (int64, int64, error)

Write provides a mock function with given fields: _a0

type Indexer Uses

type Indexer struct {
    mock.Mock
}

Indexer is an autogenerated mock type for the Indexer type

func (*Indexer) Load Uses

func (_m *Indexer) Load(path string, maxkeySize uint32) (art.Tree, bool, error)

Load provides a mock function with given fields: path, maxkeySize

func (*Indexer) Save Uses

func (_m *Indexer) Save(t art.Tree, path string) error

Save provides a mock function with given fields: t, path

Package mocks imports 3 packages (graph). Updated 2019-11-01. Refresh now. Tools for package owners.