MCPcopy
hub / github.com/vektra/mockery / Baz

Method Baz

internal/fixtures/mocks_matryer_test_test.go:196–212  ·  view source on GitHub ↗

Baz calls BazFunc.

(path string)

Source from the content-addressed store, hash-verified

194
195// Baz calls BazFunc.
196func (mock *MoqFooer) Baz(path string) func(x string) string {
197 callInfo := struct {
198 Path string
199 }{
200 Path: path,
201 }
202 mock.lockBaz.Lock()
203 mock.calls.Baz = append(mock.calls.Baz, callInfo)
204 mock.lockBaz.Unlock()
205 if mock.BazFunc == nil {
206 var (
207 fn func(x string) string
208 )
209 return fn
210 }
211 return mock.BazFunc(path)
212}
213
214// BazCalls gets all the calls that were made to Baz.
215// Check the length with:

Callers

nothing calls this directly

Calls 2

LockMethod · 0.65
UnlockMethod · 0.65

Tested by

no test coverage detected