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

Function mockBlockMetaJSON

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

Source from the content-addressed store, hash-verified

1683}
1684
1685func mockBlockMetaJSON(id string) string {
1686 meta := mockBlockMeta(id)
1687
1688 content, err := json.Marshal(meta)
1689 if err != nil {
1690 panic("failed to marshal mocked block meta")
1691 }
1692
1693 return string(content)
1694}
1695
1696func mockNoCompactBlockJSON(id string) string {
1697 meta := metadata.NoCompactMark{

Calls 2

mockBlockMetaFunction · 0.85
MarshalMethod · 0.45

Tested by

no test coverage detected