Follow calls FollowFunc.
(fetcher func() ([]byte, error), w io.Writer, ioMoqParam *iostreams.IOStreams)
| 65 | |
| 66 | // Follow calls FollowFunc. |
| 67 | func (mock *LogRendererMock) Follow(fetcher func() ([]byte, error), w io.Writer, ioMoqParam *iostreams.IOStreams) error { |
| 68 | if mock.FollowFunc == nil { |
| 69 | panic("LogRendererMock.FollowFunc: method is nil but LogRenderer.Follow was just called") |
| 70 | } |
| 71 | callInfo := struct { |
| 72 | Fetcher func() ([]byte, error) |
| 73 | W io.Writer |
| 74 | IoMoqParam *iostreams.IOStreams |
| 75 | }{ |
| 76 | Fetcher: fetcher, |
| 77 | W: w, |
| 78 | IoMoqParam: ioMoqParam, |
| 79 | } |
| 80 | mock.lockFollow.Lock() |
| 81 | mock.calls.Follow = append(mock.calls.Follow, callInfo) |
| 82 | mock.lockFollow.Unlock() |
| 83 | return mock.FollowFunc(fetcher, w, ioMoqParam) |
| 84 | } |
| 85 | |
| 86 | // FollowCalls gets all the calls that were made to Follow. |
| 87 | // Check the length with: |
nothing calls this directly
no outgoing calls
no test coverage detected