testutil

package
v0.0.0-...-e0b459c Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2021 License: Apache-2.0, Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateEventRecord

func CreateEventRecord(count, duration, size, workers int64) *birch.Document

func IsMetricsArray

func IsMetricsArray(key string, array *birch.Array) ([]string, int)

func IsMetricsDocument

func IsMetricsDocument(key string, doc *birch.Document) ([]string, int)

func IsMetricsValue

func IsMetricsValue(key string, val *birch.Value) ([]string, int)

func RandComplexDocument

func RandComplexDocument(numKeys, otherNum int) *birch.Document

func RandFlatDocument

func RandFlatDocument(numKeys int) *birch.Document

func RandFlatDocumentWithFloats

func RandFlatDocumentWithFloats(numKeys int) *birch.Document

Types

type ErrorWriter

type ErrorWriter struct {
	bytes.Buffer
}

func (*ErrorWriter) Close

func (n *ErrorWriter) Close() error

func (*ErrorWriter) Write

func (n *ErrorWriter) Write(in []byte) (int, error)

type NoopWRiter

type NoopWRiter struct {
	bytes.Buffer
}

func (*NoopWRiter) Close

func (n *NoopWRiter) Close() error

func (*NoopWRiter) Write

func (n *NoopWRiter) Write(in []byte) (int, error)

Jump to

Keyboard shortcuts

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