Function
validateDuplicatedPort
(processedEndPointPort map[int]bool, currentComponentEndPointPort map[int]bool)
Source from the content-addressed store, hash-verified
| 45 | } |
| 46 | |
| 47 | func validateDuplicatedPort(processedEndPointPort map[int]bool, currentComponentEndPointPort map[int]bool) (errList []error) { |
| 48 | for targetPort := range currentComponentEndPointPort { |
| 49 | if _, ok := processedEndPointPort[targetPort]; ok { |
| 50 | errList = append(errList, &InvalidEndpointError{port: targetPort}) |
| 51 | } |
| 52 | processedEndPointPort[targetPort] = true |
| 53 | } |
| 54 | return errList |
| 55 | } |
Tested by
no test coverage detected