testutil

package
v0.58.1-0...-af594cf Latest Latest
Warning

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

Go to latest
Published: May 1, 2020 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateSource

func CreateSource(ctx context.Context, ps SourceProcedureSpec) (execute.Source, error)

func MustParseTime

func MustParseTime(v string) time.Time

func RunSourceErrorTestHelper

func RunSourceErrorTestHelper(t *testing.T, spec SourceProcedureSpec)

func RunSourceHTTPClientTestHelper

func RunSourceHTTPClientTestHelper(t *testing.T, spec SourceProcedureSpec)

func RunSourceTestHelper

func RunSourceTestHelper(t *testing.T, spec SourceProcedureSpec, want Want)

func RunSourceURLValidatorTestHelper

func RunSourceURLValidatorTestHelper(t *testing.T, spec SourceProcedureSpec)

func StringPtr

func StringPtr(v string) *string

Types

type B

type B = testing.B

type SourceProcedureSpec

type SourceProcedureSpec interface {
	influxdb.ProcedureSpec
	BuildQuery() *ast.File
}

type T

type T = testing.T

type Want

type Want struct {
	Params url.Values
	Ast    *ast.Package
	Tables func() []*executetest.Table
}

Jump to

Keyboard shortcuts

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