MCPcopy Index your code
hub / github.com/cli/cli / CurrentVersion

Method CurrentVersion

pkg/extensions/extension_mock.go:133–143  ·  view source on GitHub ↗

CurrentVersion calls CurrentVersionFunc.

()

Source from the content-addressed store, hash-verified

131
132// CurrentVersion calls CurrentVersionFunc.
133func (mock *ExtensionMock) CurrentVersion() string {
134 if mock.CurrentVersionFunc == nil {
135 panic("ExtensionMock.CurrentVersionFunc: method is nil but Extension.CurrentVersion was just called")
136 }
137 callInfo := struct {
138 }{}
139 mock.lockCurrentVersion.Lock()
140 mock.calls.CurrentVersion = append(mock.calls.CurrentVersion, callInfo)
141 mock.lockCurrentVersion.Unlock()
142 return mock.CurrentVersionFunc()
143}
144
145// CurrentVersionCalls gets all the calls that were made to CurrentVersion.
146// Check the length with:

Callers 1

Calls

no outgoing calls

Tested by 1