ColorLabels calls ColorLabelsFunc.
(hostname string)
| 493 | |
| 494 | // ColorLabels calls ColorLabelsFunc. |
| 495 | func (mock *ConfigMock) ColorLabels(hostname string) gh.ConfigEntry { |
| 496 | if mock.ColorLabelsFunc == nil { |
| 497 | panic("ConfigMock.ColorLabelsFunc: method is nil but Config.ColorLabels was just called") |
| 498 | } |
| 499 | callInfo := struct { |
| 500 | Hostname string |
| 501 | }{ |
| 502 | Hostname: hostname, |
| 503 | } |
| 504 | mock.lockColorLabels.Lock() |
| 505 | mock.calls.ColorLabels = append(mock.calls.ColorLabels, callInfo) |
| 506 | mock.lockColorLabels.Unlock() |
| 507 | return mock.ColorLabelsFunc(hostname) |
| 508 | } |
| 509 | |
| 510 | // ColorLabelsCalls gets all the calls that were made to ColorLabels. |
| 511 | // Check the length with: |
nothing calls this directly
no outgoing calls
no test coverage detected