refactor to ensure code doesn't depend on integration code

This commit is contained in:
Jesse Duffield 2022-08-13 12:56:04 +10:00
parent 2bdefe2049
commit 304d74370e
16 changed files with 203 additions and 169 deletions

View file

@ -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