mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-04-23 12:18:51 +02:00
add integration test for branch checkout autocomplete
This commit is contained in:
parent
14ce230683
commit
13b9a8bc9a
@ -0,0 +1 @@
|
|||||||
|
initial commit
|
@ -0,0 +1 @@
|
|||||||
|
ref: refs/heads/three
|
@ -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/branchAutocomplete/expected/.git_keep/index
Normal file
BIN
test/integration/branchAutocomplete/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,6 @@
|
|||||||
|
0000000000000000000000000000000000000000 337bfd3b397e5d29e526f25ed4fb6094f857eada CI <CI@example.com> 1606556586 +1100 commit (initial): initial commit
|
||||||
|
337bfd3b397e5d29e526f25ed4fb6094f857eada 337bfd3b397e5d29e526f25ed4fb6094f857eada CI <CI@example.com> 1606556586 +1100 checkout: moving from master to one
|
||||||
|
337bfd3b397e5d29e526f25ed4fb6094f857eada 337bfd3b397e5d29e526f25ed4fb6094f857eada CI <CI@example.com> 1606556586 +1100 checkout: moving from one to two
|
||||||
|
337bfd3b397e5d29e526f25ed4fb6094f857eada 337bfd3b397e5d29e526f25ed4fb6094f857eada CI <CI@example.com> 1606556586 +1100 checkout: moving from two to three
|
||||||
|
337bfd3b397e5d29e526f25ed4fb6094f857eada 337bfd3b397e5d29e526f25ed4fb6094f857eada CI <CI@example.com> 1606556586 +1100 checkout: moving from three to four
|
||||||
|
337bfd3b397e5d29e526f25ed4fb6094f857eada 337bfd3b397e5d29e526f25ed4fb6094f857eada CI <CI@example.com> 1606556588 +1100 checkout: moving from four to three
|
@ -0,0 +1 @@
|
|||||||
|
0000000000000000000000000000000000000000 337bfd3b397e5d29e526f25ed4fb6094f857eada CI <CI@example.com> 1606556586 +1100 branch: Created from HEAD
|
@ -0,0 +1 @@
|
|||||||
|
0000000000000000000000000000000000000000 337bfd3b397e5d29e526f25ed4fb6094f857eada CI <CI@example.com> 1606556586 +1100 commit (initial): initial commit
|
@ -0,0 +1 @@
|
|||||||
|
0000000000000000000000000000000000000000 337bfd3b397e5d29e526f25ed4fb6094f857eada CI <CI@example.com> 1606556586 +1100 branch: Created from HEAD
|
@ -0,0 +1 @@
|
|||||||
|
0000000000000000000000000000000000000000 337bfd3b397e5d29e526f25ed4fb6094f857eada CI <CI@example.com> 1606556586 +1100 branch: Created from HEAD
|
@ -0,0 +1 @@
|
|||||||
|
0000000000000000000000000000000000000000 337bfd3b397e5d29e526f25ed4fb6094f857eada CI <CI@example.com> 1606556586 +1100 branch: Created from HEAD
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1 @@
|
|||||||
|
337bfd3b397e5d29e526f25ed4fb6094f857eada
|
@ -0,0 +1 @@
|
|||||||
|
337bfd3b397e5d29e526f25ed4fb6094f857eada
|
@ -0,0 +1 @@
|
|||||||
|
337bfd3b397e5d29e526f25ed4fb6094f857eada
|
@ -0,0 +1 @@
|
|||||||
|
337bfd3b397e5d29e526f25ed4fb6094f857eada
|
@ -0,0 +1 @@
|
|||||||
|
337bfd3b397e5d29e526f25ed4fb6094f857eada
|
1
test/integration/branchAutocomplete/recording.json
Normal file
1
test/integration/branchAutocomplete/recording.json
Normal file
@ -0,0 +1 @@
|
|||||||
|
[{"Timestamp":22,"Event":{"Type":1,"Mod":0,"Key":0,"Ch":0,"Width":0,"Height":0,"Err":null,"MouseX":0,"MouseY":0,"N":0,"Bytes":null}},{"Timestamp":488,"Event":{"Type":0,"Mod":0,"Key":65514,"Ch":0,"Width":0,"Height":0,"Err":null,"MouseX":0,"MouseY":0,"N":3,"Bytes":"G09D"}},{"Timestamp":721,"Event":{"Type":0,"Mod":0,"Key":0,"Ch":99,"Width":0,"Height":0,"Err":null,"MouseX":0,"MouseY":0,"N":1,"Bytes":"Yw=="}},{"Timestamp":937,"Event":{"Type":0,"Mod":0,"Key":0,"Ch":116,"Width":0,"Height":0,"Err":null,"MouseX":0,"MouseY":0,"N":1,"Bytes":"dA=="}},{"Timestamp":1073,"Event":{"Type":0,"Mod":0,"Key":0,"Ch":104,"Width":0,"Height":0,"Err":null,"MouseX":0,"MouseY":0,"N":1,"Bytes":"aA=="}},{"Timestamp":1128,"Event":{"Type":0,"Mod":0,"Key":0,"Ch":114,"Width":0,"Height":0,"Err":null,"MouseX":0,"MouseY":0,"N":1,"Bytes":"cg=="}},{"Timestamp":1201,"Event":{"Type":0,"Mod":0,"Key":0,"Ch":101,"Width":0,"Height":0,"Err":null,"MouseX":0,"MouseY":0,"N":1,"Bytes":"ZQ=="}},{"Timestamp":1457,"Event":{"Type":0,"Mod":0,"Key":9,"Ch":0,"Width":0,"Height":0,"Err":null,"MouseX":0,"MouseY":0,"N":1,"Bytes":"CQ=="}},{"Timestamp":1736,"Event":{"Type":0,"Mod":0,"Key":13,"Ch":0,"Width":0,"Height":0,"Err":null,"MouseX":0,"MouseY":0,"N":1,"Bytes":"DQ=="}},{"Timestamp":2264,"Event":{"Type":0,"Mod":0,"Key":0,"Ch":113,"Width":0,"Height":0,"Err":null,"MouseX":0,"MouseY":0,"N":1,"Bytes":"cQ=="}}]
|
18
test/integration/branchAutocomplete/setup.sh
Normal file
18
test/integration/branchAutocomplete/setup.sh
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
cd $1
|
||||||
|
|
||||||
|
git init
|
||||||
|
|
||||||
|
git config user.email "CI@example.com"
|
||||||
|
git config user.name "CI"
|
||||||
|
|
||||||
|
touch myfile.txt
|
||||||
|
git add .
|
||||||
|
git commit -m "initial commit"
|
||||||
|
|
||||||
|
git checkout -b one
|
||||||
|
git checkout -b two
|
||||||
|
git checkout -b three
|
||||||
|
git checkout -b four
|
||||||
|
|
1
test/integration/branchAutocomplete/test.json
Normal file
1
test/integration/branchAutocomplete/test.json
Normal file
@ -0,0 +1 @@
|
|||||||
|
{ "description": "check out a branch using the autocomplete feature", "speed": 20 }
|
Loading…
x
Reference in New Issue
Block a user