Help us shape the future of Go! Take the 2026 Go Developer Survey

test

package
v1.1.13 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeEvent

type FakeEvent struct{}

func NewFakeEvent

func NewFakeEvent() *FakeEvent

func (*FakeEvent) Height

func (event *FakeEvent) Height() int64

func (*FakeEvent) Name

func (event *FakeEvent) Name() string

func (*FakeEvent) String

func (event *FakeEvent) String() string

func (*FakeEvent) ToJSON

func (event *FakeEvent) ToJSON() (string, error)

func (*FakeEvent) UUID

func (event *FakeEvent) UUID() string

func (*FakeEvent) Version

func (event *FakeEvent) Version() int

type FakeEventStore

type FakeEventStore struct{}

func NewFakeEventStore

func NewFakeEventStore() *FakeEventStore

func (*FakeEventStore) GetAllByHeight

func (manager *FakeEventStore) GetAllByHeight(seq int64) ([]entity_event.Event, error)

func (*FakeEventStore) GetLatestHeight

func (manager *FakeEventStore) GetLatestHeight() (*int64, error)

func (*FakeEventStore) Insert

func (manager *FakeEventStore) Insert(evt entity_event.Event) error

func (*FakeEventStore) InsertAll

func (manager *FakeEventStore) InsertAll(evts []entity_event.Event) error

type MockEvent

type MockEvent struct {
	mock.Mock
}

func NewMockEvent

func NewMockEvent() *MockEvent

func (*MockEvent) Height

func (event *MockEvent) Height() int64

func (*MockEvent) Name

func (event *MockEvent) Name() string

func (*MockEvent) String

func (event *MockEvent) String() string

func (*MockEvent) ToJSON

func (event *MockEvent) ToJSON() (string, error)

func (*MockEvent) UUID

func (event *MockEvent) UUID() string

func (*MockEvent) Version

func (event *MockEvent) Version() int

type MockEventStore

type MockEventStore struct {
	mock.Mock
}

func NewMockEventStore

func NewMockEventStore() *MockEventStore

func (*MockEventStore) GetAllByHeight

func (manager *MockEventStore) GetAllByHeight(height int64) ([]entity_event.Event, error)

func (*MockEventStore) GetLatestHeight

func (manager *MockEventStore) GetLatestHeight() (*int64, error)

func (*MockEventStore) Insert

func (manager *MockEventStore) Insert(evt entity_event.Event) error

func (*MockEventStore) InsertAll

func (manager *MockEventStore) InsertAll(evts []entity_event.Event) error

Jump to

Keyboard shortcuts

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