mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-04-15 11:56:37 +02:00
test: add integration test
This commit is contained in:
parent
c7fd218308
commit
088445b7be
test/integration/stashIncludeUntrackedChanges
expected/repo/.git_keep
recording.jsonsetup.shtest.json@ -0,0 +1 @@
|
||||
Initial commit
|
@ -0,0 +1 @@
|
||||
ref: refs/heads/master
|
@ -0,0 +1 @@
|
||||
592d439043d07cd223cbde4b3a0884b94634437b
|
@ -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.
|
Binary file not shown.
@ -0,0 +1,6 @@
|
||||
# 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]
|
||||
# *~
|
@ -0,0 +1,2 @@
|
||||
0000000000000000000000000000000000000000 592d439043d07cd223cbde4b3a0884b94634437b CI <CI@example.com> 1654284027 -0230 commit (initial): Initial commit
|
||||
592d439043d07cd223cbde4b3a0884b94634437b 592d439043d07cd223cbde4b3a0884b94634437b CI <CI@example.com> 1654284036 -0230 reset: moving to HEAD
|
1
test/integration/stashIncludeUntrackedChanges/expected/repo/.git_keep/logs/refs/heads/master
Normal file
1
test/integration/stashIncludeUntrackedChanges/expected/repo/.git_keep/logs/refs/heads/master
Normal file
@ -0,0 +1 @@
|
||||
0000000000000000000000000000000000000000 592d439043d07cd223cbde4b3a0884b94634437b CI <CI@example.com> 1654284027 -0230 commit (initial): Initial commit
|
@ -0,0 +1 @@
|
||||
0000000000000000000000000000000000000000 b3c24805b28fa5e90b5807bb402b123974f13d61 CI <CI@example.com> 1654284036 -0230 WIP on master: 592d439 Initial commit
|
2
test/integration/stashIncludeUntrackedChanges/expected/repo/.git_keep/objects/02/8cf118f08271dc2b9dd68d72a65918df664951
Normal file
2
test/integration/stashIncludeUntrackedChanges/expected/repo/.git_keep/objects/02/8cf118f08271dc2b9dd68d72a65918df664951
Normal file
@ -0,0 +1,2 @@
|
||||
x��[
|
||||
Â0EýÎ*fJ&¯&""ô«ËH¦S6�´)¸|nÀßË9çR-%7@ïOme:×¥QoX©dµGt!("¤d;¥nqoϺB?Àü‰å=ó…j¹:k”7R;8K¥¥8Öã¤ñŸ¸Ø—¶FzñSžyƒº@‰Ûá_Á5`XrËq†_Z|j:¼
|
BIN
test/integration/stashIncludeUntrackedChanges/expected/repo/.git_keep/objects/09/767bd3484e22b41138116992cc1cb5bc45fb7f
Normal file
BIN
test/integration/stashIncludeUntrackedChanges/expected/repo/.git_keep/objects/09/767bd3484e22b41138116992cc1cb5bc45fb7f
Normal file
Binary file not shown.
BIN
test/integration/stashIncludeUntrackedChanges/expected/repo/.git_keep/objects/4b/825dc642cb6eb9a060e54bf8d69288fbee4904
Normal file
BIN
test/integration/stashIncludeUntrackedChanges/expected/repo/.git_keep/objects/4b/825dc642cb6eb9a060e54bf8d69288fbee4904
Normal file
Binary file not shown.
BIN
test/integration/stashIncludeUntrackedChanges/expected/repo/.git_keep/objects/59/2d439043d07cd223cbde4b3a0884b94634437b
Normal file
BIN
test/integration/stashIncludeUntrackedChanges/expected/repo/.git_keep/objects/59/2d439043d07cd223cbde4b3a0884b94634437b
Normal file
Binary file not shown.
BIN
test/integration/stashIncludeUntrackedChanges/expected/repo/.git_keep/objects/b3/c24805b28fa5e90b5807bb402b123974f13d61
Normal file
BIN
test/integration/stashIncludeUntrackedChanges/expected/repo/.git_keep/objects/b3/c24805b28fa5e90b5807bb402b123974f13d61
Normal file
Binary file not shown.
BIN
test/integration/stashIncludeUntrackedChanges/expected/repo/.git_keep/objects/db/0f86d5434dd5e5f3a2210f9a7edf5a816ae935
Normal file
BIN
test/integration/stashIncludeUntrackedChanges/expected/repo/.git_keep/objects/db/0f86d5434dd5e5f3a2210f9a7edf5a816ae935
Normal file
Binary file not shown.
BIN
test/integration/stashIncludeUntrackedChanges/expected/repo/.git_keep/objects/e6/9de29bb2d1d6434b8b29ae775ad8c2e48c5391
Normal file
BIN
test/integration/stashIncludeUntrackedChanges/expected/repo/.git_keep/objects/e6/9de29bb2d1d6434b8b29ae775ad8c2e48c5391
Normal file
Binary file not shown.
1
test/integration/stashIncludeUntrackedChanges/expected/repo/.git_keep/refs/heads/master
Normal file
1
test/integration/stashIncludeUntrackedChanges/expected/repo/.git_keep/refs/heads/master
Normal file
@ -0,0 +1 @@
|
||||
592d439043d07cd223cbde4b3a0884b94634437b
|
@ -0,0 +1 @@
|
||||
b3c24805b28fa5e90b5807bb402b123974f13d61
|
@ -0,0 +1 @@
|
||||
{"KeyEvents":[{"Timestamp":3590,"Mod":0,"Key":256,"Ch":83},{"Timestamp":6045,"Mod":0,"Key":256,"Ch":85},{"Timestamp":7792,"Mod":0,"Key":13,"Ch":13},{"Timestamp":15045,"Mod":0,"Key":256,"Ch":113}],"ResizeEvents":[{"Timestamp":0,"Width":294,"Height":79}]}
|
14
test/integration/stashIncludeUntrackedChanges/setup.sh
Normal file
14
test/integration/stashIncludeUntrackedChanges/setup.sh
Normal file
@ -0,0 +1,14 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
cd $1
|
||||
|
||||
git init
|
||||
|
||||
git config user.email "CI@example.com"
|
||||
git config user.name "CI"
|
||||
|
||||
git commit --allow-empty -m "Initial commit"
|
||||
|
||||
touch file0
|
1
test/integration/stashIncludeUntrackedChanges/test.json
Normal file
1
test/integration/stashIncludeUntrackedChanges/test.json
Normal file
@ -0,0 +1 @@
|
||||
{ "description": "Stashing all files including untracked files", "speed": 20 }
|
Loading…
x
Reference in New Issue
Block a user