SetHosts will override any hosts resolution and return the given hosts for all calls to Hosts. Use for testing purposes only.
(hosts []string)
| 501 | // SetHosts will override any hosts resolution and return the given |
| 502 | // hosts for all calls to Hosts. Use for testing purposes only. |
| 503 | func (c *AuthConfig) SetHosts(hosts []string) { |
| 504 | c.hostsOverride = func() []string { |
| 505 | return hosts |
| 506 | } |
| 507 | } |
| 508 | |
| 509 | func (c *AuthConfig) DefaultHost() (string, string) { |
| 510 | if c.defaultHostOverride != nil { |
nothing calls this directly
no outgoing calls
no test coverage detected