MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / Range

Method Range

pkg/util/test/elements.go:77–83  ·  view source on GitHub ↗
(f func(k, v any) bool)

Source from the content-addressed store, hash-verified

75}
76
77func (rv indexRanger) Range(f func(k, v any) bool) {
78 for i := 0; i < rv.Len(); i++ {
79 if !f(i, rv.Index(i).Interface()) {
80 return
81 }
82 }
83}
84
85type mapRanger struct {
86 reflect.Value

Callers

nothing calls this directly

Calls 1

LenMethod · 0.45

Tested by

no test coverage detected