testing

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0, MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakePersistable

type FakePersistable struct {
}

func (*FakePersistable) Persist

func (t *FakePersistable) Persist(ctx context.Context, s model.StorageBatch, version model.Version) error

type FakeStorage

type FakeStorage struct {
}

func (*FakeStorage) PersistBatch

func (t *FakeStorage) PersistBatch(ctx context.Context, ps ...model.Persistable) error

type MockExporter

type MockExporter struct {
	mock.Mock
}

func (*MockExporter) ExportResult

func (t *MockExporter) ExportResult(ctx context.Context, strg model.Storage, height int64, m []*indexer.ModelResult) error

type MockIndexBuilder

type MockIndexBuilder struct {
	MockIndexer *MockIndexer
	mock.Mock
}

func (*MockIndexBuilder) Build

func (t *MockIndexBuilder) Build() (tipset.Indexer, error)

func (*MockIndexBuilder) Name

func (t *MockIndexBuilder) Name() string

func (*MockIndexBuilder) WithInterval added in v0.17.1

func (t *MockIndexBuilder) WithInterval(_ int) tipset.IndexerBuilder

func (*MockIndexBuilder) WithTasks

func (t *MockIndexBuilder) WithTasks(_ []string) tipset.IndexerBuilder

type MockIndexer

type MockIndexer struct {
	mock.Mock
}

func (*MockIndexer) TipSet

func (t *MockIndexer) TipSet(ctx context.Context, ts *types.TipSet) (chan *tipset.Result, chan error, error)

Jump to

Keyboard shortcuts

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