HTTPUnixSocket calls HTTPUnixSocketFunc.
(hostname string)
| 625 | |
| 626 | // HTTPUnixSocket calls HTTPUnixSocketFunc. |
| 627 | func (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: |
nothing calls this directly
no outgoing calls
no test coverage detected