MCPcopy
hub / github.com/prometheus/prometheus / foreachAppendable

Function foreachAppendable

scrape/helpers_test.go:215–221  ·  view source on GitHub ↗
(t *testing.T, f func(t *testing.T, appV2 bool))

Source from the content-addressed store, hash-verified

213}
214
215func foreachAppendable(t *testing.T, f func(t *testing.T, appV2 bool)) {
216 for _, appV2 := range []bool{false, true} {
217 t.Run(fmt.Sprintf("appV2=%v", appV2), func(t *testing.T) {
218 f(t, appV2)
219 })
220 }
221}
222
223func TestSelectAppendable(t *testing.T) {
224 var i int

Calls 2

fFunction · 0.85
RunMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…