MCPcopy Index your code
hub / github.com/belak/gitdir / validateGroupLoop

Method validateGroupLoop

config_validate.go:47–56  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45}
46
47func (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
58func (c *Config) validateGroupLoopInternal(groupName string, groupPath []string) error {
59 // If we hit a group loop, return the path to get here

Callers 1

ValidateMethod · 0.95

Calls 2

newMultiErrorFunction · 0.85

Tested by

no test coverage detected