Documentation ¶
Index ¶
- func CreateChunks(startIndex, batchSize int, from model.Time, through model.Time) ([]string, []chunk.Chunk, error)
- func DefaultSchemaConfig(kind string) chunk.SchemaConfig
- func Setup(fixture Fixture, tableName string) (chunk.IndexClient, chunk.Client, error)
- func SetupTestChunkStore() (chunk.Store, error)
- func SetupTestDeleteStore() (*chunk.DeleteStore, error)
- func SetupTestObjectStore() (chunk.ObjectClient, error)
- func TeardownFixture(t *testing.T, fixture Fixture)
- type Fixture
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateChunks ¶
func CreateChunks(startIndex, batchSize int, from model.Time, through model.Time) ([]string, []chunk.Chunk, error)
CreateChunks creates some chunks for testing
func DefaultSchemaConfig ¶
func DefaultSchemaConfig(kind string) chunk.SchemaConfig
DefaultSchemaConfig returns default schema for use in test fixtures
func SetupTestChunkStore ¶ added in v0.7.0
func SetupTestDeleteStore ¶ added in v0.7.0
func SetupTestDeleteStore() (*chunk.DeleteStore, error)
func SetupTestObjectStore ¶ added in v0.7.0
func SetupTestObjectStore() (chunk.ObjectClient, error)
func TeardownFixture ¶ added in v0.7.0
Types ¶
type Fixture ¶
type Fixture interface { Name() string Clients() (chunk.IndexClient, chunk.Client, chunk.TableClient, chunk.SchemaConfig, error) Teardown() error }
Fixture type for per-backend testing.
Click to show internal directories.
Click to hide internal directories.