testutil

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2024 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseConnectors

func CloseConnectors(t *testing.T, connectors []model.Connector)

func TestConnectors

func TestConnectors(t *testing.T) []model.Connector

Connectors returns a list of connectors to be used in tests. If you are adding a new supported driver, add it here and it will be tested on all the tcs automatically.

Types

type StubConnector

type StubConnector struct{}

func (*StubConnector) As

func (m *StubConnector) As(i interface{}) bool

func (*StubConnector) Connect

func (m *StubConnector) Connect(ctx context.Context) error

func (*StubConnector) Disconnect

func (m *StubConnector) Disconnect(ctx context.Context) error

func (*StubConnector) Ping

func (m *StubConnector) Ping(ctx context.Context) error

func (*StubConnector) Type

func (m *StubConnector) Type() string

Jump to

Keyboard shortcuts

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