test

package
v0.0.0-...-d369a32 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2019 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DestroyMySQL

func DestroyMySQL(t *testing.T)

func InitMySQL

func InitMySQL(t *testing.T) *store.MySQL

func ParseSQLFile

func ParseSQLFile(t *testing.T) map[string]string

Types

type MockChannelReceiverProvider

type MockChannelReceiverProvider struct{}

func (MockChannelReceiverProvider) GetChannelReceiver

func (provider MockChannelReceiverProvider) GetChannelReceiver(channel string, names []string) map[string]string

type MockDatasource

type MockDatasource struct{}

func (MockDatasource) CheckQuery

func (mock MockDatasource) CheckQuery(now time.Time, query string) error

func (MockDatasource) Close

func (mock MockDatasource) Close() error

func (MockDatasource) Query

func (mock MockDatasource) Query(now time.Time, query string) ([]datasource.Point, error)

type MockInfluxdbClient

type MockInfluxdbClient struct{}

func (*MockInfluxdbClient) Close

func (client *MockInfluxdbClient) Close() error

func (*MockInfluxdbClient) Ping

func (*MockInfluxdbClient) Query

func (client *MockInfluxdbClient) Query(q influxdb.Query) (*influxdb.Response, error)

func (*MockInfluxdbClient) QueryAsChunk

func (client *MockInfluxdbClient) QueryAsChunk(q influxdb.Query) (*influxdb.ChunkedResponse, error)

func (*MockInfluxdbClient) Write

func (client *MockInfluxdbClient) Write(bp influxdb.BatchPoints) error

Jump to

Keyboard shortcuts

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