Baz calls BazFunc.
(path string)
| 194 | |
| 195 | // Baz calls BazFunc. |
| 196 | func (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: |