/
githubmirror
/
lazygit
Обзор
Документация
Войти
/
githubmirror
/
lazygit
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
pkg/integration/tests/branch/shared.go
25 строк
586 B
Stefan Haller
Extract test helper function checkRemoteBranches
01 дек 2024, 12:59
01 дек 2024, 12:59
0b09105
Код
Авторство
О чём код?
package branch import ( "github.com/jesseduffield/lazygit/pkg/config" . "github.com/jesseduffield/lazygit/pkg/integration/components" "github.com/samber/lo" ) func checkRemoteBranches(t *TestDriver, keys config.KeybindingConfig, remoteName string, expectedBranches []string) { t.Views().Remotes(). Focus(). NavigateToLine(Contains(remoteName)). PressEnter() t.Views(). RemoteBranches(). Lines( lo.Map(expectedBranches, func(branch string, _ int) *TextMatcher { return Equals(branch) })..., ). Press(keys.Universal.Return) t.Views(). Branches(). Focus() }