MCPcopy
hub / github.com/jesseduffield/lazygit / Error

Method Error

pkg/fakes/log.go:19–30  ·  view source on GitHub ↗
(args ...any)

Source from the content-addressed store, hash-verified

17}
18
19func (self *FakeFieldLogger) Error(args ...any) {
20 if len(args) != 1 {
21 panic("Expected exactly one argument to FakeFieldLogger.Error")
22 }
23
24 switch arg := args[0].(type) {
25 case error:
26 self.loggedErrors = append(self.loggedErrors, arg.Error())
27 case string:
28 self.loggedErrors = append(self.loggedErrors, arg)
29 }
30}
31
32func (self *FakeFieldLogger) Errorf(format string, args ...any) {
33 msg := fmt.Sprintf(format, args...)

Callers 15

expectMethod · 0.45
ExpectClipboardMethod · 0.45
CopyFileMethod · 0.45
FileContentMethod · 0.45
MatchesRegexpMethod · 0.45
RunCLIFunction · 0.45
runAndPrintFatalErrorFunction · 0.45
runTuiTestFunction · 0.45
runAndPrintErrorFunction · 0.45
TestPeekAtFunction · 0.45

Calls

no outgoing calls

Tested by 15

TestPeekAtFunction · 0.36
TestPeekAtEmptyBufferFunction · 0.36
TestRebaseRebaseBranchFunction · 0.36
TestGetRepoPathsFunction · 0.36
TestFinishCmdObjFunction · 0.36
TestGetWorktreesFunction · 0.36