MCPcopy
hub / github.com/cli/cli / SetHosts

Method SetHosts

internal/gh/gh.go:165–165  ·  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

163 // SetHosts will override any hosts resolution and return the given hosts for all calls to Hosts.
164 // Use for testing purposes only.
165 SetHosts(hosts []string)
166
167 // SetDefaultHost will override any host resolution and return the given host and source for all calls to
168 // DefaultHost.

Callers 5

Test_BaseRepoFunction · 0.95
Test_SmartBaseRepoFunction · 0.95
Test_remoteResolverFunction · 0.95
Test_createRunFunction · 0.95

Implementers 1

AuthConfiginternal/config/config.go

Calls

no outgoing calls

Tested by 5

Test_BaseRepoFunction · 0.76
Test_SmartBaseRepoFunction · 0.76
Test_remoteResolverFunction · 0.76
Test_createRunFunction · 0.76