v1tests

package
v2.7.11 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LosAngeles = mustParseLocation("America/Los_Angeles")

Functions

func OpenServer

func OpenServer(t *testing.T, extra ...launcher.OptSetter) *tests.DefaultPipeline

Types

type Query

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

func (*Query) Execute

func (q *Query) Execute(ctx context.Context, t *testing.T, db string, c *tests.Client) (err error)

Execute runs the command and returns an err if it fails

type Test

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

func NewEmptyTest

func NewEmptyTest() Test

NewEmptyTest creates an empty test without a default database and retention policy mapping or any expected writes.

func NewTest

func NewTest(db, rp string) Test

func (*Test) Run

func (qt *Test) Run(ctx context.Context, t *testing.T, p *tests.DefaultPipeline)

type TestServer added in v2.1.0

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

func NewTestServer added in v2.1.0

func NewTestServer(ctx context.Context, t *testing.T, db, rp string, writes ...string) *TestServer

func (*TestServer) Execute added in v2.1.0

func (qr *TestServer) Execute(ctx context.Context, t *testing.T, query Query)

type Write

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

type Writes

type Writes []*Write

Jump to

Keyboard shortcuts

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