Documentation ¶
Overview ¶
package test contains utility functions used by tests/benchmarks in various packages
Index ¶
- func ContainsMKey(list []schema.MKey, subject schema.MKey) bool
- func GetAMKey(suffix int) schema.AMKey
- func GetMKey(suffix int) schema.MKey
- func KeyToInt(key schema.MKey) int
- func MustMKeyFromString(id string) schema.MKey
- func NewContext() context.Context
- func Path(dst string) string
- func RandFloats(size int) []schema.Point
- func RandFloats100() []schema.Point
- func RandFloats10k() []schema.Point
- func RandFloats1M() []schema.Point
- func RandFloatsWithNulls(size int) []schema.Point
- func RandFloatsWithNulls100() []schema.Point
- func RandFloatsWithNulls10k() []schema.Point
- func RandFloatsWithNulls1M() []schema.Point
- func ShouldContainMKey(actual interface{}, expected ...interface{}) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustMKeyFromString ¶
func NewContext ¶
NewContext returns a context holding a tracing span
func Path ¶ added in v0.13.0
path takes a relative path within the metrictank repository and returns the full absolute filepath, assuming metrictank repo is in the first directory specified in GOPATH
func RandFloats ¶
func RandFloats100 ¶ added in v0.12.0
func RandFloats10k ¶
func RandFloats1M ¶
func RandFloatsWithNulls ¶
func RandFloatsWithNulls100 ¶ added in v0.12.0
func RandFloatsWithNulls10k ¶
func RandFloatsWithNulls1M ¶
func ShouldContainMKey ¶
func ShouldContainMKey(actual interface{}, expected ...interface{}) string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.