()
| 45 | } |
| 46 | |
| 47 | func (c *Config) validateGroupLoop() error { |
| 48 | errors := make([]error, 0, len(c.Groups)) |
| 49 | |
| 50 | // Essentially this is "do a tree traversal on the groups" |
| 51 | for groupName := range c.Groups { |
| 52 | errors = append(errors, c.validateGroupLoopInternal(groupName, nil)) |
| 53 | } |
| 54 | |
| 55 | return newMultiError(errors...) |
| 56 | } |
| 57 | |
| 58 | func (c *Config) validateGroupLoopInternal(groupName string, groupPath []string) error { |
| 59 | // If we hit a group loop, return the path to get here |
no test coverage detected