mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-11 12:25:47 +02:00
refactor to ensure code doesn't depend on integration code
This commit is contained in:
parent
2bdefe2049
commit
304d74370e
16 changed files with 203 additions and 169 deletions
|
@ -14,7 +14,7 @@ import (
|
|||
)
|
||||
|
||||
type IntegrationTest interface {
|
||||
Run(guiAdapter *GuiAdapter)
|
||||
Run(guiAdapter *GuiDriver)
|
||||
}
|
||||
|
||||
func (gui *Gui) handleTestMode(test integrationTypes.IntegrationTest) {
|
||||
|
@ -22,7 +22,7 @@ func (gui *Gui) handleTestMode(test integrationTypes.IntegrationTest) {
|
|||
go func() {
|
||||
time.Sleep(time.Millisecond * 100)
|
||||
|
||||
test.Run(&GuiAdapter{gui: gui})
|
||||
test.Run(&GuiDriver{gui: gui})
|
||||
|
||||
gui.g.Update(func(*gocui.Gui) error {
|
||||
return gocui.ErrQuit
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue