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

Method HTTPUnixSocket

internal/gh/mock/config.go:627–640  ·  view source on GitHub ↗

HTTPUnixSocket calls HTTPUnixSocketFunc.

(hostname string)

Source from the content-addressed store, hash-verified

625
626// HTTPUnixSocket calls HTTPUnixSocketFunc.
627func (mock *ConfigMock) HTTPUnixSocket(hostname string) gh.ConfigEntry {
628 if mock.HTTPUnixSocketFunc == nil {
629 panic("ConfigMock.HTTPUnixSocketFunc: method is nil but Config.HTTPUnixSocket was just called")
630 }
631 callInfo := struct {
632 Hostname string
633 }{
634 Hostname: hostname,
635 }
636 mock.lockHTTPUnixSocket.Lock()
637 mock.calls.HTTPUnixSocket = append(mock.calls.HTTPUnixSocket, callInfo)
638 mock.lockHTTPUnixSocket.Unlock()
639 return mock.HTTPUnixSocketFunc(hostname)
640}
641
642// HTTPUnixSocketCalls gets all the calls that were made to HTTPUnixSocket.
643// Check the length with:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected