The following methods are only for testing and that is a design smell we should consider fixing. SetActiveToken will override any token resolution and return the given token and source for all calls to ActiveToken. Use for testing purposes only.
(token, source string)
| 159 | // ActiveToken. |
| 160 | // Use for testing purposes only. |
| 161 | SetActiveToken(token, source string) |
| 162 | |
| 163 | // SetHosts will override any hosts resolution and return the given hosts for all calls to Hosts. |
| 164 | // Use for testing purposes only. |
no outgoing calls