Package list golang-github-go-kit-kit / 1f238bf
Tolerate that there may not be any lables, if the teststat.FillCounter() did not add any samples. Eric Feliksik 4 years ago
1 changed file(s) with 4 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
4040
4141 func (mcw *mockCloudWatch) testDimensions(name string, labelValues ...string) error {
4242 mcw.mtx.RLock()
43 _, hasValue := mcw.valuesReceived[name]
44 if !hasValue {
45 return nil // nothing to check; 0 samples were received
46 }
4347 dimensions, ok := mcw.dimensionsReceived[name]
4448 mcw.mtx.RUnlock()
4549