MCPcopy
hub / github.com/grafana/dskit / Get

Method Get

ring/util_test.go:26–29  ·  view source on GitHub ↗
(key uint32, op Operation, bufDescs []InstanceDesc, bufHosts, bufZones []string)

Source from the content-addressed store, hash-verified

24func (r *RingMock) Describe(_ chan<- *prometheus.Desc) {}
25
26func (r *RingMock) Get(key uint32, op Operation, bufDescs []InstanceDesc, bufHosts, bufZones []string) (ReplicationSet, error) {
27 args := r.Called(key, op, bufDescs, bufHosts, bufZones)
28 return args.Get(0).(ReplicationSet), args.Error(1)
29}
30
31func (r *RingMock) GetWithOptions(key uint32, op Operation, opts ...Option) (ReplicationSet, error) {
32 args := r.Called(key, op, opts)

Callers

nothing calls this directly

Calls 2

GetMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected