Create calls CreateFunc.
(name string, tmplType ExtTemplateType)
| 149 | |
| 150 | // Create calls CreateFunc. |
| 151 | func (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: |
nothing calls this directly
no outgoing calls
no test coverage detected