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

Method ColorLabels

internal/gh/mock/config.go:495–508  ·  view source on GitHub ↗

ColorLabels calls ColorLabelsFunc.

(hostname string)

Source from the content-addressed store, hash-verified

493
494// ColorLabels calls ColorLabelsFunc.
495func (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:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected