(_ context.Context, options client.PingOptions)
| 140 | } |
| 141 | |
| 142 | func (c *fakeClient) Ping(_ context.Context, options client.PingOptions) (client.PingResult, error) { |
| 143 | res, err := c.pingFunc() |
| 144 | if options.NegotiateAPIVersion { |
| 145 | if res.APIVersion != "" { |
| 146 | if c.negotiated || options.ForceNegotiate { |
| 147 | c.negotiated = true |
| 148 | } |
| 149 | } |
| 150 | } |
| 151 | return res, err |
| 152 | } |
| 153 | |
| 154 | func (c *fakeClient) ClientVersion() string { |
| 155 | return c.version |
no outgoing calls
no test coverage detected