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

Method RunCommandExpectError

pkg/integration/components/shell.go:48–55  ·  view source on GitHub ↗
(args []string)

Source from the content-addressed store, hash-verified

46}
47
48func (self *Shell) RunCommandExpectError(args []string) *Shell {
49 output, err := self.runCommandWithOutput(args)
50 if err == nil {
51 self.fail(fmt.Sprintf("Expected error running shell command: %v\n%s", args, output))
52 }
53
54 return self
55}
56
57func (self *Shell) runCommandWithOutput(args []string) (string, error) {
58 return self.runCommandWithOutputAndEnv(args, []string{})

Calls 3

runCommandWithOutputMethod · 0.95
failMethod · 0.80
SprintfMethod · 0.65

Tested by

no test coverage detected