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

Method Follow

pkg/cmd/agent-task/shared/log_mock.go:67–84  ·  view source on GitHub ↗

Follow calls FollowFunc.

(fetcher func() ([]byte, error), w io.Writer, ioMoqParam *iostreams.IOStreams)

Source from the content-addressed store, hash-verified

65
66// Follow calls FollowFunc.
67func (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:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected