(child []string, candidate []string)
| 237 | } |
| 238 | |
| 239 | func isParent(child []string, candidate []string) (bool, []string) { |
| 240 | if len(child) < len(candidate) { |
| 241 | return false, child |
| 242 | } |
| 243 | return slices.Equal(child[0:len(candidate)], candidate), child[len(candidate):] |
| 244 | } |
| 245 | |
| 246 | // newResolver returns a resolver struct |
| 247 | func newResolver(conSpec *oci.Spec, hostRoot string) *resolver { |
no outgoing calls
no test coverage detected
searching dependent graphs…