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

Method Create

pkg/extensions/manager_mock.go:151–166  ·  view source on GitHub ↗

Create calls CreateFunc.

(name string, tmplType ExtTemplateType)

Source from the content-addressed store, hash-verified

149
150// Create calls CreateFunc.
151func (mock *ExtensionManagerMock) Create(name string, tmplType ExtTemplateType) error {
152 if mock.CreateFunc == nil {
153 panic("ExtensionManagerMock.CreateFunc: method is nil but ExtensionManager.Create was just called")
154 }
155 callInfo := struct {
156 Name string
157 TmplType ExtTemplateType
158 }{
159 Name: name,
160 TmplType: tmplType,
161 }
162 mock.lockCreate.Lock()
163 mock.calls.Create = append(mock.calls.Create, callInfo)
164 mock.lockCreate.Unlock()
165 return mock.CreateFunc(name, tmplType)
166}
167
168// CreateCalls gets all the calls that were made to Create.
169// Check the length with:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected