MCPcopy Create free account
hub / github.com/cli/cli / SetHosts

Method SetHosts

internal/gh/gh.go:209–209  ·  view source on GitHub ↗

SetHosts will override any hosts resolution and return the given hosts for all calls to Hosts. Use for testing purposes only.

(hosts []string)

Source from the content-addressed store, hash-verified

207 // SetHosts will override any hosts resolution and return the given hosts for all calls to Hosts.
208 // Use for testing purposes only.
209 SetHosts(hosts []string)
210
211 // SetDefaultHost will override any host resolution and return the given host and source for all calls to
212 // DefaultHost.

Callers 7

Test_BaseRepoFunction · 0.95
Test_SmartBaseRepoFunction · 0.95
Test_remoteResolverFunction · 0.95
Test_createRunFunction · 0.95
TestHostForAPIHostFunction · 0.65

Implementers 1

AuthConfiginternal/config/config.go

Calls

no outgoing calls

Tested by 7

Test_BaseRepoFunction · 0.76
Test_SmartBaseRepoFunction · 0.76
Test_remoteResolverFunction · 0.76
Test_createRunFunction · 0.76
TestHostForAPIHostFunction · 0.52