(path []int)
| 431 | } |
| 432 | |
| 433 | func pathIndexes(path []int) string { |
| 434 | if len(path) == 0 { |
| 435 | return "root" |
| 436 | } |
| 437 | var b strings.Builder |
| 438 | for i, idx := range path { |
| 439 | if i > 0 { |
| 440 | b.WriteByte('.') |
| 441 | } |
| 442 | b.WriteString(strconv.Itoa(idx)) |
| 443 | } |
| 444 | return b.String() |
| 445 | } |
| 446 | |
| 447 | func (c *compiler) metricNames() []string { |
| 448 | return mapKeysSorted(c.metricsSet) |
no test coverage detected
searching dependent graphs…