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

Function NewTestDriver

pkg/integration/components/test_driver.go:20–28  ·  view source on GitHub ↗
(gui integrationTypes.GuiDriver, shell *Shell, keys config.KeybindingConfig, inputDelay int)

Source from the content-addressed store, hash-verified

18}
19
20func NewTestDriver(gui integrationTypes.GuiDriver, shell *Shell, keys config.KeybindingConfig, inputDelay int) *TestDriver {
21 return &TestDriver{
22 gui: gui,
23 keys: keys,
24 inputDelay: inputDelay,
25 assertionHelper: &assertionHelper{gui: gui},
26 shell: shell,
27 }
28}
29
30// key is something like 'w' or '<space>'. It's best not to pass a direct value,
31// but instead to go through the default user config to get a more meaningful key name

Callers 1

RunMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected