mocks

package
v0.0.0-...-e6fb8a6 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DataBlockEqual

func DataBlockEqual(a *datablocks.DataBlock, b *datablocks.DataBlock) bool

func NewBlockFromSlice

func NewBlockFromSlice(cols []*columns.Column, datas ...[]interface{}) *datablocks.DataBlock

func NewSourceFromSlice

func NewSourceFromSlice(datas ...interface{}) []interface{}

Types

type Mock

type Mock struct {
	Log     *xlog.Log
	Conf    *config.Config
	Session *sessions.Session
	Ctx     context.Context
	Cancel  context.CancelFunc
}

func NewMock

func NewMock() (*Mock, func())

type MockBlockInputStream

type MockBlockInputStream struct {
	// contains filtered or unexported fields
}

func NewMockBlockInputStream

func NewMockBlockInputStream(datas []interface{}) *MockBlockInputStream

func (*MockBlockInputStream) Close

func (stream *MockBlockInputStream) Close()

func (*MockBlockInputStream) Insert

func (stream *MockBlockInputStream) Insert(v *datablocks.DataBlock) error

func (*MockBlockInputStream) Name

func (stream *MockBlockInputStream) Name() string

func (*MockBlockInputStream) Read

func (stream *MockBlockInputStream) Read() (*datablocks.DataBlock, error)

Jump to

Keyboard shortcuts

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