The current implementation of the WithEnterpriseURLs helper doesn't function as expected and doesn't appear to support GitHub Enterprise Cloud. For example testing the path of a url.URL can't assume that there will be slashes at either end. It also looks like this helper is expected to work correctly with standard GitHub URLs, so maybe it should be renamed to WithURLs and have the implementation fixed?
The current implementation of the
WithEnterpriseURLshelper doesn't function as expected and doesn't appear to support GitHub Enterprise Cloud. For example testing the path of aurl.URLcan't assume that there will be slashes at either end. It also looks like this helper is expected to work correctly with standard GitHub URLs, so maybe it should be renamed toWithURLsand have the implementation fixed?