SetHosts will override any hosts resolution and return the given hosts for all calls to Hosts. Use for testing purposes only.
(hosts []string)
| 477 | // SetHosts will override any hosts resolution and return the given |
| 478 | // hosts for all calls to Hosts. Use for testing purposes only. |
| 479 | func (c *AuthConfig) SetHosts(hosts []string) { |
| 480 | c.hostsOverride = func() []string { |
| 481 | return hosts |
| 482 | } |
| 483 | } |
| 484 | |
| 485 | func (c *AuthConfig) DefaultHost() (string, string) { |
| 486 | if c.defaultHostOverride != nil { |
nothing calls this directly
no outgoing calls
no test coverage detected