testutil

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: AGPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateBlock

func CreateBlock(t testing.TB, generator func() []*testhelper.ProfileBuilder) (block.Meta, string)

CreateBlock creates a block with the given profiles. Returns the block metadata, the directory where the block is stored, and an error if any.

func CreateBlockFromMemory added in v1.8.0

func CreateBlockFromMemory(t *testing.T, dir string, minTime, maxTime model.Time, profiles, tsdb, symbols []byte) *block.Meta

func MockNoCompactMark

func MockNoCompactMark(t testing.TB, bucket objstore.Bucket, userID string, meta block.Meta) *block.NoCompactMark

func MockStorageBlock

func MockStorageBlock(t testing.TB, bucket objstore.Bucket, userID string, minT, maxT model.Time) block.Meta

func MockStorageBlockWithExtLabels

func MockStorageBlockWithExtLabels(t testing.TB, bucket objstore.Bucket, userID string, minT, maxT model.Time, externalLabels map[string]string) block.Meta

func MockStorageDeletionMark

func MockStorageDeletionMark(t testing.TB, bucket objstore.Bucket, userID string, meta block.Meta) *block.DeletionMark

func OpenBlockFromMemory added in v1.8.0

func OpenBlockFromMemory(t *testing.T, dir string, minTime, maxTime model.Time, profiles, tsdb, symbols []byte) *phlaredb.BlockQuerier

Types

This section is empty.

Jump to

Keyboard shortcuts

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