topotest

package
v2.0.0-dev.5 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const POSTLEAP = 1000 // Time change after all data sends out

Variables

This section is empty.

Functions

func CommonResultFunc

func CommonResultFunc(result []any) [][]map[string]any

CommonResultFunc A function to convert memory sink result to map slice

func CompareMetrics

func CompareMetrics(tp *topo.Topo, m map[string]interface{}) (err error)

func DoRuleTest

func DoRuleTest(t *testing.T, tests []RuleTest, opt *def.RuleOption, w int)

func HandleStream

func HandleStream(createOrDrop bool, names []string, t *testing.T)

HandleStream Create or drop streams

Types

type RuleTest

type RuleTest struct {
	Name string
	Sql  string
	R    [][]map[string]any // The result
	M    map[string]any     // final metrics
	T    *def.PrintableTopo // printable topo, an optional field
	W    int                // wait time for each data sending, in milli
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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