MCPcopy Index your code
hub / github.com/prometheus/prometheus / newTestClientAndQueueManager

Function newTestClientAndQueueManager

storage/remote/queue_manager_test.go:299–304  ·  view source on GitHub ↗
(t testing.TB, flushDeadline time.Duration, protoMsg remoteapi.WriteMessageType)

Source from the content-addressed store, hash-verified

297}
298
299func newTestClientAndQueueManager(t testing.TB, flushDeadline time.Duration, protoMsg remoteapi.WriteMessageType) (*TestWriteClient, *QueueManager) {
300 c := NewTestWriteClient(protoMsg)
301 cfg := config.DefaultQueueConfig
302 mcfg := config.DefaultMetadataConfig
303 return c, newTestQueueManager(t, cfg, mcfg, flushDeadline, c, protoMsg)
304}
305
306func newTestQueueManager(t testing.TB, cfg config.QueueConfig, mcfg config.MetadataConfig, deadline time.Duration, c WriteClient, protoMsg remoteapi.WriteMessageType) *QueueManager {
307 dir := t.TempDir()

Callers 7

TestMetadataDeliveryFunction · 0.85
TestSampleDeliveryOrderFunction · 0.85
TestShouldReshardFunction · 0.85

Calls 2

NewTestWriteClientFunction · 0.85
newTestQueueManagerFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…