(ln *labelName, n int)
| 229 | } |
| 230 | |
| 231 | func resetLabelNameState(ln *labelName, n int) { |
| 232 | newActive := make(map[string]int, n) |
| 233 | for i := 0; i < n; i++ { |
| 234 | newActive[fmt.Sprintf("ln_%d", i)] = i + 1 |
| 235 | } |
| 236 | ln.mu.Lock() |
| 237 | ln.pendingNameToID = make(map[string]int) |
| 238 | ln.mu.Unlock() |
| 239 | ln.replaceActive(newActive) |
| 240 | } |
| 241 | |
| 242 | func resetLayoutState(mll *metricAndAPPLabelLayout, n int) { |
| 243 | newActive := make(map[LayoutKey]uint8, n) |
nothing calls this directly
no test coverage detected