MCPcopy
hub / github.com/helm/helm / keyIndex

Method keyIndex

pkg/strvals/parser.go:324–334  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

322}
323
324func (t *parser) keyIndex() (int, error) {
325 // First, get the key.
326 stop := runeSet([]rune{']'})
327 v, _, err := runesUntil(t.sc, stop)
328 if err != nil {
329 return 0, err
330 }
331 // v should be the index
332 return strconv.Atoi(string(v))
333
334}
335
336func (t *parser) listItem(list []any, i, nestedNameLevel int) ([]any, error) {
337 if i < 0 {

Callers 2

keyMethod · 0.95
listItemMethod · 0.95

Calls 2

runeSetFunction · 0.85
runesUntilFunction · 0.85

Tested by

no test coverage detected