mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-29 23:17:32 +02:00
more tests
This commit is contained in:
parent
bbdbbd0b1b
commit
bde324820d
@ -0,0 +1 @@
|
|||||||
|
file0
|
1
test/integration/branchDelete/expected/.git_keep/HEAD
Normal file
1
test/integration/branchDelete/expected/.git_keep/HEAD
Normal file
@ -0,0 +1 @@
|
|||||||
|
ref: refs/heads/old-branch-3
|
10
test/integration/branchDelete/expected/.git_keep/config
Normal file
10
test/integration/branchDelete/expected/.git_keep/config
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
[core]
|
||||||
|
repositoryformatversion = 0
|
||||||
|
filemode = true
|
||||||
|
bare = false
|
||||||
|
logallrefupdates = true
|
||||||
|
ignorecase = true
|
||||||
|
precomposeunicode = true
|
||||||
|
[user]
|
||||||
|
email = CI@example.com
|
||||||
|
name = CI
|
@ -0,0 +1 @@
|
|||||||
|
Unnamed repository; edit this file 'description' to name the repository.
|
BIN
test/integration/branchDelete/expected/.git_keep/index
Normal file
BIN
test/integration/branchDelete/expected/.git_keep/index
Normal file
Binary file not shown.
@ -0,0 +1,7 @@
|
|||||||
|
# git ls-files --others --exclude-from=.git/info/exclude
|
||||||
|
# Lines that start with '#' are comments.
|
||||||
|
# For a project mostly in C, the following would be a good set of
|
||||||
|
# exclude patterns (uncomment them if you want to use them):
|
||||||
|
# *.[oa]
|
||||||
|
# *~
|
||||||
|
.DS_Store
|
@ -0,0 +1,7 @@
|
|||||||
|
0000000000000000000000000000000000000000 21b436d66d2c515ad17285e53d9e6380d599b044 CI <CI@example.com> 1617684680 +1000 commit (initial): file0
|
||||||
|
21b436d66d2c515ad17285e53d9e6380d599b044 21b436d66d2c515ad17285e53d9e6380d599b044 CI <CI@example.com> 1617684680 +1000 checkout: moving from master to new-branch
|
||||||
|
21b436d66d2c515ad17285e53d9e6380d599b044 21b436d66d2c515ad17285e53d9e6380d599b044 CI <CI@example.com> 1617684680 +1000 checkout: moving from new-branch to new-branch-2
|
||||||
|
21b436d66d2c515ad17285e53d9e6380d599b044 21b436d66d2c515ad17285e53d9e6380d599b044 CI <CI@example.com> 1617684680 +1000 checkout: moving from new-branch-2 to new-branch-3
|
||||||
|
21b436d66d2c515ad17285e53d9e6380d599b044 21b436d66d2c515ad17285e53d9e6380d599b044 CI <CI@example.com> 1617684680 +1000 checkout: moving from new-branch-3 to old-branch
|
||||||
|
21b436d66d2c515ad17285e53d9e6380d599b044 21b436d66d2c515ad17285e53d9e6380d599b044 CI <CI@example.com> 1617684680 +1000 checkout: moving from old-branch to old-branch-2
|
||||||
|
21b436d66d2c515ad17285e53d9e6380d599b044 21b436d66d2c515ad17285e53d9e6380d599b044 CI <CI@example.com> 1617684680 +1000 checkout: moving from old-branch-2 to old-branch-3
|
@ -0,0 +1 @@
|
|||||||
|
0000000000000000000000000000000000000000 21b436d66d2c515ad17285e53d9e6380d599b044 CI <CI@example.com> 1617684680 +1000 commit (initial): file0
|
@ -0,0 +1 @@
|
|||||||
|
0000000000000000000000000000000000000000 21b436d66d2c515ad17285e53d9e6380d599b044 CI <CI@example.com> 1617684680 +1000 branch: Created from HEAD
|
@ -0,0 +1 @@
|
|||||||
|
0000000000000000000000000000000000000000 21b436d66d2c515ad17285e53d9e6380d599b044 CI <CI@example.com> 1617684680 +1000 branch: Created from HEAD
|
@ -0,0 +1 @@
|
|||||||
|
0000000000000000000000000000000000000000 21b436d66d2c515ad17285e53d9e6380d599b044 CI <CI@example.com> 1617684680 +1000 branch: Created from HEAD
|
@ -0,0 +1 @@
|
|||||||
|
0000000000000000000000000000000000000000 21b436d66d2c515ad17285e53d9e6380d599b044 CI <CI@example.com> 1617684680 +1000 branch: Created from HEAD
|
@ -0,0 +1 @@
|
|||||||
|
0000000000000000000000000000000000000000 21b436d66d2c515ad17285e53d9e6380d599b044 CI <CI@example.com> 1617684680 +1000 branch: Created from HEAD
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1 @@
|
|||||||
|
21b436d66d2c515ad17285e53d9e6380d599b044
|
@ -0,0 +1 @@
|
|||||||
|
21b436d66d2c515ad17285e53d9e6380d599b044
|
@ -0,0 +1 @@
|
|||||||
|
21b436d66d2c515ad17285e53d9e6380d599b044
|
@ -0,0 +1 @@
|
|||||||
|
21b436d66d2c515ad17285e53d9e6380d599b044
|
@ -0,0 +1 @@
|
|||||||
|
21b436d66d2c515ad17285e53d9e6380d599b044
|
@ -0,0 +1 @@
|
|||||||
|
21b436d66d2c515ad17285e53d9e6380d599b044
|
1
test/integration/branchDelete/expected/file0
Normal file
1
test/integration/branchDelete/expected/file0
Normal file
@ -0,0 +1 @@
|
|||||||
|
test0
|
1
test/integration/branchDelete/recording.json
Normal file
1
test/integration/branchDelete/recording.json
Normal file
@ -0,0 +1 @@
|
|||||||
|
{"KeyEvents":[{"Timestamp":483,"Mod":0,"Key":259,"Ch":0},{"Timestamp":787,"Mod":0,"Key":256,"Ch":100},{"Timestamp":2021,"Mod":0,"Key":27,"Ch":0},{"Timestamp":2436,"Mod":0,"Key":258,"Ch":0},{"Timestamp":2779,"Mod":0,"Key":256,"Ch":100},{"Timestamp":3275,"Mod":0,"Key":13,"Ch":13},{"Timestamp":3971,"Mod":0,"Key":256,"Ch":113}],"ResizeEvents":[{"Timestamp":0,"Width":272,"Height":74}]}
|
19
test/integration/branchDelete/setup.sh
Normal file
19
test/integration/branchDelete/setup.sh
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
cd $1
|
||||||
|
|
||||||
|
git init
|
||||||
|
|
||||||
|
git config user.email "CI@example.com"
|
||||||
|
git config user.name "CI"
|
||||||
|
|
||||||
|
echo test0 > file0
|
||||||
|
git add .
|
||||||
|
git commit -am file0
|
||||||
|
|
||||||
|
git checkout -b new-branch
|
||||||
|
git checkout -b new-branch-2
|
||||||
|
git checkout -b new-branch-3
|
||||||
|
git checkout -b old-branch
|
||||||
|
git checkout -b old-branch-2
|
||||||
|
git checkout -b old-branch-3
|
1
test/integration/branchDelete/test.json
Normal file
1
test/integration/branchDelete/test.json
Normal file
@ -0,0 +1 @@
|
|||||||
|
{ "description": "Checking out a branch with name suggestions", "speed": 100 }
|
18
test/integration/customCommands/config/config.yml
Normal file
18
test/integration/customCommands/config/config.yml
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
disableStartupPopups: true
|
||||||
|
customCommands:
|
||||||
|
- key : 'N'
|
||||||
|
description: 'Add file'
|
||||||
|
command: "echo {{index .PromptResponses 0}} > {{index .PromptResponses 1}}"
|
||||||
|
context: 'files'
|
||||||
|
prompts:
|
||||||
|
- type: 'input'
|
||||||
|
title: 'File name:'
|
||||||
|
- type: 'input'
|
||||||
|
title: 'File content:'
|
||||||
|
gui:
|
||||||
|
theme:
|
||||||
|
activeBorderColor:
|
||||||
|
- green
|
||||||
|
- bold
|
||||||
|
SelectedRangeBgcolor:
|
||||||
|
- reverse
|
@ -0,0 +1 @@
|
|||||||
|
test
|
1
test/integration/customCommands/expected/.git_keep/HEAD
Normal file
1
test/integration/customCommands/expected/.git_keep/HEAD
Normal file
@ -0,0 +1 @@
|
|||||||
|
ref: refs/heads/master
|
10
test/integration/customCommands/expected/.git_keep/config
Normal file
10
test/integration/customCommands/expected/.git_keep/config
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
[core]
|
||||||
|
repositoryformatversion = 0
|
||||||
|
filemode = true
|
||||||
|
bare = false
|
||||||
|
logallrefupdates = true
|
||||||
|
ignorecase = true
|
||||||
|
precomposeunicode = true
|
||||||
|
[user]
|
||||||
|
email = CI@example.com
|
||||||
|
name = CI
|
@ -0,0 +1 @@
|
|||||||
|
Unnamed repository; edit this file 'description' to name the repository.
|
BIN
test/integration/customCommands/expected/.git_keep/index
Normal file
BIN
test/integration/customCommands/expected/.git_keep/index
Normal file
Binary file not shown.
@ -0,0 +1,7 @@
|
|||||||
|
# git ls-files --others --exclude-from=.git/info/exclude
|
||||||
|
# Lines that start with '#' are comments.
|
||||||
|
# For a project mostly in C, the following would be a good set of
|
||||||
|
# exclude patterns (uncomment them if you want to use them):
|
||||||
|
# *.[oa]
|
||||||
|
# *~
|
||||||
|
.DS_Store
|
@ -0,0 +1 @@
|
|||||||
|
0000000000000000000000000000000000000000 15bdb2c31c825116ad5af06ee25517d90b24f13b CI <CI@example.com> 1617684452 +1000 commit (initial): test
|
@ -0,0 +1 @@
|
|||||||
|
0000000000000000000000000000000000000000 15bdb2c31c825116ad5af06ee25517d90b24f13b CI <CI@example.com> 1617684452 +1000 commit (initial): test
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1 @@
|
|||||||
|
15bdb2c31c825116ad5af06ee25517d90b24f13b
|
1
test/integration/customCommands/expected/blah
Normal file
1
test/integration/customCommands/expected/blah
Normal file
@ -0,0 +1 @@
|
|||||||
|
myfile
|
1
test/integration/customCommands/recording.json
Normal file
1
test/integration/customCommands/recording.json
Normal file
@ -0,0 +1 @@
|
|||||||
|
{"KeyEvents":[{"Timestamp":837,"Mod":0,"Key":256,"Ch":78},{"Timestamp":1622,"Mod":0,"Key":256,"Ch":109},{"Timestamp":1798,"Mod":0,"Key":256,"Ch":121},{"Timestamp":1918,"Mod":0,"Key":256,"Ch":102},{"Timestamp":2006,"Mod":0,"Key":256,"Ch":105},{"Timestamp":2078,"Mod":0,"Key":256,"Ch":108},{"Timestamp":2174,"Mod":0,"Key":256,"Ch":101},{"Timestamp":2431,"Mod":0,"Key":13,"Ch":13},{"Timestamp":3246,"Mod":0,"Key":256,"Ch":98},{"Timestamp":3294,"Mod":0,"Key":256,"Ch":108},{"Timestamp":3398,"Mod":0,"Key":256,"Ch":97},{"Timestamp":3462,"Mod":0,"Key":256,"Ch":104},{"Timestamp":3735,"Mod":0,"Key":13,"Ch":13},{"Timestamp":4206,"Mod":0,"Key":256,"Ch":32},{"Timestamp":4421,"Mod":0,"Key":256,"Ch":99},{"Timestamp":4646,"Mod":0,"Key":256,"Ch":116},{"Timestamp":4726,"Mod":0,"Key":256,"Ch":101},{"Timestamp":4886,"Mod":0,"Key":256,"Ch":115},{"Timestamp":4918,"Mod":0,"Key":256,"Ch":116},{"Timestamp":5190,"Mod":0,"Key":13,"Ch":13},{"Timestamp":5550,"Mod":0,"Key":256,"Ch":113}],"ResizeEvents":[{"Timestamp":0,"Width":272,"Height":74}]}
|
8
test/integration/customCommands/setup.sh
Normal file
8
test/integration/customCommands/setup.sh
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
cd $1
|
||||||
|
|
||||||
|
git init
|
||||||
|
|
||||||
|
git config user.email "CI@example.com"
|
||||||
|
git config user.name "CI"
|
1
test/integration/customCommands/test.json
Normal file
1
test/integration/customCommands/test.json
Normal file
@ -0,0 +1 @@
|
|||||||
|
{ "description": "Invoke a custom command that creates a file, and then stage and commit that file", "speed": 5 }
|
Loading…
x
Reference in New Issue
Block a user