MCPcopy Index your code
hub / github.com/cortexproject/cortex / mockBlockMeta

Function mockBlockMeta

pkg/compactor/compactor_test.go:1672–1683  ·  view source on GitHub ↗
(id string)

Source from the content-addressed store, hash-verified

1670}
1671
1672func mockBlockMeta(id string) tsdb.BlockMeta {
1673 return tsdb.BlockMeta{
1674 Version: 1,
1675 ULID: ulid.MustParse(id),
1676 MinTime: 1574776800000,
1677 MaxTime: 1574784000000,
1678 Compaction: tsdb.BlockMetaCompaction{
1679 Level: 1,
1680 Sources: []ulid.ULID{ulid.MustParse(id)},
1681 },
1682 }
1683}
1684
1685func mockBlockMetaJSON(id string) string {
1686 meta := mockBlockMeta(id)

Callers 4

mockBlockGroupFunction · 0.85
mockBlockMetaJSONFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected