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

Method FollowCalls

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

FollowCalls gets all the calls that were made to Follow. Check the length with: len(mockedLogRenderer.FollowCalls())

()

Source from the content-addressed store, hash-verified

88//
89// len(mockedLogRenderer.FollowCalls())
90func (mock *LogRendererMock) FollowCalls() []struct {
91 Fetcher func() ([]byte, error)
92 W io.Writer
93 IoMoqParam *iostreams.IOStreams
94} {
95 var calls []struct {
96 Fetcher func() ([]byte, error)
97 W io.Writer
98 IoMoqParam *iostreams.IOStreams
99 }
100 mock.lockFollow.RLock()
101 calls = mock.calls.Follow
102 mock.lockFollow.RUnlock()
103 return calls
104}
105
106// Render calls RenderFunc.
107func (mock *LogRendererMock) Render(logs []byte, w io.Writer, ioMoqParam *iostreams.IOStreams) (bool, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected