2023-02-19 02:44:17 +02:00
|
|
|
// THIS FILE IS AUTO-GENERATED. You can regenerate it by running `go generate ./...` at the root of the lazygit repo.
|
|
|
|
|
|
|
|
package tests
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/jesseduffield/lazygit/pkg/integration/components"
|
|
|
|
"github.com/jesseduffield/lazygit/pkg/integration/tests/bisect"
|
|
|
|
"github.com/jesseduffield/lazygit/pkg/integration/tests/branch"
|
|
|
|
"github.com/jesseduffield/lazygit/pkg/integration/tests/cherry_pick"
|
|
|
|
"github.com/jesseduffield/lazygit/pkg/integration/tests/commit"
|
|
|
|
"github.com/jesseduffield/lazygit/pkg/integration/tests/config"
|
2023-02-19 06:01:57 +02:00
|
|
|
"github.com/jesseduffield/lazygit/pkg/integration/tests/conflicts"
|
2023-02-19 02:44:17 +02:00
|
|
|
"github.com/jesseduffield/lazygit/pkg/integration/tests/custom_commands"
|
|
|
|
"github.com/jesseduffield/lazygit/pkg/integration/tests/diff"
|
|
|
|
"github.com/jesseduffield/lazygit/pkg/integration/tests/file"
|
|
|
|
"github.com/jesseduffield/lazygit/pkg/integration/tests/filter_by_path"
|
|
|
|
"github.com/jesseduffield/lazygit/pkg/integration/tests/interactive_rebase"
|
|
|
|
"github.com/jesseduffield/lazygit/pkg/integration/tests/misc"
|
|
|
|
"github.com/jesseduffield/lazygit/pkg/integration/tests/patch_building"
|
2023-02-22 12:15:03 +02:00
|
|
|
"github.com/jesseduffield/lazygit/pkg/integration/tests/reflog"
|
2023-02-22 12:57:32 +02:00
|
|
|
"github.com/jesseduffield/lazygit/pkg/integration/tests/staging"
|
2023-02-19 02:44:17 +02:00
|
|
|
"github.com/jesseduffield/lazygit/pkg/integration/tests/stash"
|
|
|
|
"github.com/jesseduffield/lazygit/pkg/integration/tests/submodule"
|
|
|
|
"github.com/jesseduffield/lazygit/pkg/integration/tests/sync"
|
2023-02-20 09:41:17 +02:00
|
|
|
"github.com/jesseduffield/lazygit/pkg/integration/tests/tag"
|
2023-02-19 04:29:04 +02:00
|
|
|
"github.com/jesseduffield/lazygit/pkg/integration/tests/ui"
|
2023-02-19 06:27:13 +02:00
|
|
|
"github.com/jesseduffield/lazygit/pkg/integration/tests/undo"
|
2023-02-19 02:44:17 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
var tests = []*components.IntegrationTest{
|
|
|
|
bisect.Basic,
|
|
|
|
bisect.FromOtherBranch,
|
|
|
|
branch.CheckoutByName,
|
2023-02-08 16:11:40 +02:00
|
|
|
branch.CreateTag,
|
2023-02-19 02:44:17 +02:00
|
|
|
branch.Delete,
|
|
|
|
branch.DetachedHead,
|
2023-02-19 04:54:15 +02:00
|
|
|
branch.OpenWithCliArg,
|
2023-02-19 02:44:17 +02:00
|
|
|
branch.Rebase,
|
2023-05-31 18:29:01 +02:00
|
|
|
branch.RebaseAbortOnConflict,
|
2023-02-19 02:44:17 +02:00
|
|
|
branch.RebaseAndDrop,
|
2023-05-31 18:29:01 +02:00
|
|
|
branch.RebaseCancelOnConflict,
|
2023-02-19 02:44:17 +02:00
|
|
|
branch.RebaseDoesNotAutosquash,
|
|
|
|
branch.Reset,
|
2023-02-22 12:57:32 +02:00
|
|
|
branch.ResetUpstream,
|
|
|
|
branch.SetUpstream,
|
2023-02-19 02:44:17 +02:00
|
|
|
branch.Suggestions,
|
|
|
|
cherry_pick.CherryPick,
|
|
|
|
cherry_pick.CherryPickConflicts,
|
2023-03-09 20:48:01 +02:00
|
|
|
commit.Amend,
|
2023-02-19 02:44:17 +02:00
|
|
|
commit.Commit,
|
|
|
|
commit.CommitMultiline,
|
2023-05-09 07:10:27 +02:00
|
|
|
commit.CommitWipWithPrefix,
|
|
|
|
commit.CommitWithPrefix,
|
2023-02-20 09:52:45 +02:00
|
|
|
commit.CreateTag,
|
2023-02-19 02:44:17 +02:00
|
|
|
commit.DiscardOldFileChange,
|
2023-06-01 12:11:06 +02:00
|
|
|
commit.Highlight,
|
2023-04-29 12:04:43 +02:00
|
|
|
commit.History,
|
|
|
|
commit.HistoryComplex,
|
2023-02-19 02:44:17 +02:00
|
|
|
commit.NewBranch,
|
2023-02-22 12:57:32 +02:00
|
|
|
commit.ResetAuthor,
|
2023-02-19 02:44:17 +02:00
|
|
|
commit.Revert,
|
2023-02-19 05:47:07 +02:00
|
|
|
commit.RevertMerge,
|
2023-01-21 13:38:14 +02:00
|
|
|
commit.Reword,
|
2023-02-22 12:57:32 +02:00
|
|
|
commit.Search,
|
|
|
|
commit.SetAuthor,
|
2023-02-19 02:44:17 +02:00
|
|
|
commit.StageRangeOfLines,
|
|
|
|
commit.Staged,
|
|
|
|
commit.StagedWithoutHooks,
|
|
|
|
commit.Unstaged,
|
|
|
|
config.RemoteNamedStar,
|
2023-02-25 13:09:14 +02:00
|
|
|
conflicts.Filter,
|
|
|
|
conflicts.ResolveExternally,
|
|
|
|
conflicts.ResolveMultipleFiles,
|
2023-02-19 06:01:57 +02:00
|
|
|
conflicts.UndoChooseHunk,
|
2023-03-10 11:31:30 +02:00
|
|
|
custom_commands.BasicCmdAtRuntime,
|
2023-04-13 19:13:03 +02:00
|
|
|
custom_commands.BasicCmdFromConfig,
|
2023-05-21 09:00:29 +02:00
|
|
|
custom_commands.ComplexCmdAtRuntime,
|
2023-02-19 02:44:17 +02:00
|
|
|
custom_commands.FormPrompts,
|
|
|
|
custom_commands.MenuFromCommand,
|
|
|
|
custom_commands.MenuFromCommandsOutput,
|
|
|
|
custom_commands.MultiplePrompts,
|
2023-04-13 19:13:03 +02:00
|
|
|
custom_commands.OmitFromHistory,
|
2023-05-29 14:46:18 +02:00
|
|
|
custom_commands.SuggestionsCommand,
|
2023-05-29 06:24:49 +02:00
|
|
|
custom_commands.SuggestionsPreset,
|
2023-02-19 02:44:17 +02:00
|
|
|
diff.Diff,
|
|
|
|
diff.DiffAndApplyPatch,
|
|
|
|
diff.DiffCommits,
|
|
|
|
diff.IgnoreWhitespace,
|
|
|
|
file.DirWithUntrackedFile,
|
|
|
|
file.DiscardChanges,
|
|
|
|
file.DiscardStagedChanges,
|
|
|
|
file.Gitignore,
|
2023-02-23 13:29:40 +02:00
|
|
|
file.RememberCommitMessageAfterFail,
|
2023-02-19 02:44:17 +02:00
|
|
|
filter_by_path.CliArg,
|
|
|
|
filter_by_path.SelectFile,
|
|
|
|
filter_by_path.TypeFile,
|
2023-04-02 20:45:21 +02:00
|
|
|
interactive_rebase.AdvancedInteractiveRebase,
|
2023-03-08 18:50:51 +02:00
|
|
|
interactive_rebase.AmendCommitWithConflict,
|
2023-02-20 09:29:43 +02:00
|
|
|
interactive_rebase.AmendFirstCommit,
|
2023-04-19 08:19:17 +02:00
|
|
|
interactive_rebase.AmendFixupCommit,
|
2022-09-15 17:35:33 +02:00
|
|
|
interactive_rebase.AmendHeadCommitDuringRebase,
|
2023-02-19 02:44:17 +02:00
|
|
|
interactive_rebase.AmendMerge,
|
2023-03-20 14:13:43 +02:00
|
|
|
interactive_rebase.AmendNonHeadCommitDuringRebase,
|
2023-04-13 20:24:28 +02:00
|
|
|
interactive_rebase.DropTodoCommitWithUpdateRef,
|
2023-05-02 09:36:03 +02:00
|
|
|
interactive_rebase.DropTodoCommitWithUpdateRefShowBranchHeads,
|
2023-02-19 12:33:58 +02:00
|
|
|
interactive_rebase.EditFirstCommit,
|
2023-03-04 19:11:17 +02:00
|
|
|
interactive_rebase.EditNonTodoCommitDuringRebase,
|
2023-02-19 16:08:35 +02:00
|
|
|
interactive_rebase.FixupFirstCommit,
|
2023-02-19 12:33:58 +02:00
|
|
|
interactive_rebase.FixupSecondCommit,
|
2023-02-22 10:36:31 +02:00
|
|
|
interactive_rebase.Move,
|
|
|
|
interactive_rebase.MoveInRebase,
|
2023-03-08 22:24:48 +02:00
|
|
|
interactive_rebase.PickRescheduled,
|
2023-02-22 10:36:31 +02:00
|
|
|
interactive_rebase.Rebase,
|
2023-03-12 14:00:46 +02:00
|
|
|
interactive_rebase.RewordCommitWithEditorAndFail,
|
2023-02-19 12:33:58 +02:00
|
|
|
interactive_rebase.RewordFirstCommit,
|
2023-02-22 10:36:31 +02:00
|
|
|
interactive_rebase.RewordLastCommit,
|
2023-03-03 20:53:15 +02:00
|
|
|
interactive_rebase.RewordYouAreHereCommit,
|
|
|
|
interactive_rebase.RewordYouAreHereCommitWithEditor,
|
2023-02-19 16:08:35 +02:00
|
|
|
interactive_rebase.SquashDownFirstCommit,
|
2023-02-19 12:33:58 +02:00
|
|
|
interactive_rebase.SquashDownSecondCommit,
|
2023-02-20 09:29:43 +02:00
|
|
|
interactive_rebase.SquashFixupsAboveFirstCommit,
|
2023-02-22 10:36:31 +02:00
|
|
|
interactive_rebase.SwapInRebaseWithConflict,
|
|
|
|
interactive_rebase.SwapWithConflict,
|
2023-02-19 02:44:17 +02:00
|
|
|
misc.ConfirmOnQuit,
|
2023-02-19 04:59:19 +02:00
|
|
|
misc.InitialOpen,
|
2023-06-07 09:41:17 +02:00
|
|
|
misc.RecentReposOnLaunch,
|
2023-02-25 04:08:45 +02:00
|
|
|
patch_building.Apply,
|
|
|
|
patch_building.ApplyInReverse,
|
2023-02-25 22:00:29 +02:00
|
|
|
patch_building.ApplyInReverseWithConflict,
|
2023-02-19 02:44:17 +02:00
|
|
|
patch_building.CopyPatchToClipboard,
|
2023-03-18 09:17:47 +02:00
|
|
|
patch_building.MoveToEarlierCommit,
|
2023-04-15 12:53:23 +02:00
|
|
|
patch_building.MoveToEarlierCommitNoKeepEmpty,
|
2023-02-25 04:08:45 +02:00
|
|
|
patch_building.MoveToIndex,
|
2023-03-18 09:17:47 +02:00
|
|
|
patch_building.MoveToIndexPartOfAdjacentAddedLines,
|
2023-02-25 04:08:45 +02:00
|
|
|
patch_building.MoveToIndexPartial,
|
|
|
|
patch_building.MoveToIndexWithConflict,
|
2023-03-18 09:17:47 +02:00
|
|
|
patch_building.MoveToLaterCommit,
|
|
|
|
patch_building.MoveToLaterCommitPartialHunk,
|
2023-02-25 04:08:45 +02:00
|
|
|
patch_building.MoveToNewCommit,
|
2023-03-18 09:17:47 +02:00
|
|
|
patch_building.MoveToNewCommitPartialHunk,
|
2023-02-25 04:08:45 +02:00
|
|
|
patch_building.RemoveFromCommit,
|
|
|
|
patch_building.ResetWithEscape,
|
|
|
|
patch_building.SelectAllFiles,
|
|
|
|
patch_building.SpecificSelection,
|
|
|
|
patch_building.StartNewPatch,
|
2023-02-22 12:15:03 +02:00
|
|
|
reflog.Checkout,
|
|
|
|
reflog.CherryPick,
|
|
|
|
reflog.Patch,
|
|
|
|
reflog.Reset,
|
2023-02-23 13:29:40 +02:00
|
|
|
staging.DiffContextChange,
|
|
|
|
staging.DiscardAllChanges,
|
2023-02-22 12:57:32 +02:00
|
|
|
staging.Search,
|
2023-02-23 13:29:40 +02:00
|
|
|
staging.StageHunks,
|
|
|
|
staging.StageLines,
|
|
|
|
staging.StageRanges,
|
2023-02-20 12:52:27 +02:00
|
|
|
stash.Apply,
|
|
|
|
stash.ApplyPatch,
|
|
|
|
stash.CreateBranch,
|
|
|
|
stash.Drop,
|
|
|
|
stash.Pop,
|
2023-06-06 08:30:44 +02:00
|
|
|
stash.PreventDiscardingFileChanges,
|
2023-02-19 02:44:17 +02:00
|
|
|
stash.Rename,
|
|
|
|
stash.Stash,
|
2023-02-20 12:52:27 +02:00
|
|
|
stash.StashAll,
|
|
|
|
stash.StashAndKeepIndex,
|
2023-02-19 02:44:17 +02:00
|
|
|
stash.StashIncludingUntrackedFiles,
|
2023-02-20 12:52:27 +02:00
|
|
|
stash.StashStaged,
|
|
|
|
stash.StashUnstaged,
|
2023-02-19 02:44:17 +02:00
|
|
|
submodule.Add,
|
|
|
|
submodule.Enter,
|
|
|
|
submodule.Remove,
|
|
|
|
submodule.Reset,
|
|
|
|
sync.FetchPrune,
|
2023-02-19 04:38:15 +02:00
|
|
|
sync.ForcePush,
|
2023-02-19 04:51:45 +02:00
|
|
|
sync.ForcePushMultipleMatching,
|
|
|
|
sync.ForcePushMultipleUpstream,
|
2023-02-19 02:48:17 +02:00
|
|
|
sync.Pull,
|
2023-02-19 02:51:42 +02:00
|
|
|
sync.PullAndSetUpstream,
|
2023-02-22 13:25:18 +02:00
|
|
|
sync.PullMerge,
|
|
|
|
sync.PullMergeConflict,
|
|
|
|
sync.PullRebase,
|
|
|
|
sync.PullRebaseConflict,
|
|
|
|
sync.PullRebaseInteractiveConflict,
|
|
|
|
sync.PullRebaseInteractiveConflictDrop,
|
2023-02-21 12:49:48 +02:00
|
|
|
sync.Push,
|
|
|
|
sync.PushAndAutoSetUpstream,
|
|
|
|
sync.PushAndSetUpstream,
|
|
|
|
sync.PushFollowTags,
|
|
|
|
sync.PushNoFollowTags,
|
|
|
|
sync.PushTag,
|
|
|
|
sync.PushWithCredentialPrompt,
|
2023-02-19 02:44:17 +02:00
|
|
|
sync.RenameBranchAndPull,
|
2023-02-20 09:45:14 +02:00
|
|
|
tag.Checkout,
|
2023-02-20 09:41:17 +02:00
|
|
|
tag.CrudAnnotated,
|
|
|
|
tag.CrudLightweight,
|
2023-02-20 09:48:37 +02:00
|
|
|
tag.Reset,
|
2023-02-23 13:29:40 +02:00
|
|
|
ui.DoublePopup,
|
2023-02-20 10:29:15 +02:00
|
|
|
ui.SwitchTabFromMenu,
|
2023-02-19 09:33:01 +02:00
|
|
|
undo.UndoCheckoutAndDrop,
|
2023-02-19 06:27:13 +02:00
|
|
|
undo.UndoDrop,
|
2023-02-19 02:44:17 +02:00
|
|
|
}
|