1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-03-19 21:28:28 +02:00

working on integration tests working again

This commit is contained in:
Jesse Duffield 2021-04-05 09:38:16 +10:00
parent 32d170621c
commit 011451464f
17 changed files with 26 additions and 243 deletions

View File

@ -197,9 +197,15 @@ func Test() error {
record := os.Getenv("RECORD_EVENTS") != ""
updateSnapshots := record || os.Getenv("UPDATE_SNAPSHOTS") != ""
for _, test := range tests[0:1] {
selectedTestName := os.Args[1]
for _, test := range tests {
test := test
if selectedTestName != "" && test.Name != selectedTestName {
continue
}
speeds := getTestSpeeds(test.Speed, updateSnapshots)
for i, speed := range speeds {

View File

@ -1 +1 @@
my commit
commit

View File

@ -1,5 +1,5 @@
0000000000000000000000000000000000000000 f4473317f8385f84b8054f3e9e9895870aa339bb CI <CI@example.com> 1601981250 +1100 commit (initial): myfile1
f4473317f8385f84b8054f3e9e9895870aa339bb 60100545975af038486a0265a786b78c090faa4c CI <CI@example.com> 1601981250 +1100 commit: myfile2
60100545975af038486a0265a786b78c090faa4c 7c8c3a30f773b8d25cf9b5f5eccfe1b4cf823069 CI <CI@example.com> 1601981250 +1100 commit: myfile3
7c8c3a30f773b8d25cf9b5f5eccfe1b4cf823069 dcb4d7ccb176a17a6ddc2e1a402a28f055947393 CI <CI@example.com> 1601981250 +1100 commit: myfile4
dcb4d7ccb176a17a6ddc2e1a402a28f055947393 459260de735f85c64517eef30e6a2d2236f3f920 CI <CI@example.com> 1601981254 +1100 commit: my commit
0000000000000000000000000000000000000000 55bf9e2babc63fb5bae4b42c79fb1ddd1f4205fa CI <CI@example.com> 1617579407 +1000 commit (initial): myfile1
55bf9e2babc63fb5bae4b42c79fb1ddd1f4205fa e68c1143545a09cac1db6e6f20db13b82b5dc43e CI <CI@example.com> 1617579407 +1000 commit: myfile2
e68c1143545a09cac1db6e6f20db13b82b5dc43e ba001a041f64109b238f03550d6a21209bd5d4fc CI <CI@example.com> 1617579407 +1000 commit: myfile3
ba001a041f64109b238f03550d6a21209bd5d4fc 6f31cc35ebabdf3fb71759e3d267677e712f737f CI <CI@example.com> 1617579407 +1000 commit: myfile4
6f31cc35ebabdf3fb71759e3d267677e712f737f ecc083de4d216847c184c72a639743bba6520d88 CI <CI@example.com> 1617579409 +1000 commit: commit

View File

@ -1,5 +1,5 @@
0000000000000000000000000000000000000000 f4473317f8385f84b8054f3e9e9895870aa339bb CI <CI@example.com> 1601981250 +1100 commit (initial): myfile1
f4473317f8385f84b8054f3e9e9895870aa339bb 60100545975af038486a0265a786b78c090faa4c CI <CI@example.com> 1601981250 +1100 commit: myfile2
60100545975af038486a0265a786b78c090faa4c 7c8c3a30f773b8d25cf9b5f5eccfe1b4cf823069 CI <CI@example.com> 1601981250 +1100 commit: myfile3
7c8c3a30f773b8d25cf9b5f5eccfe1b4cf823069 dcb4d7ccb176a17a6ddc2e1a402a28f055947393 CI <CI@example.com> 1601981250 +1100 commit: myfile4
dcb4d7ccb176a17a6ddc2e1a402a28f055947393 459260de735f85c64517eef30e6a2d2236f3f920 CI <CI@example.com> 1601981254 +1100 commit: my commit
0000000000000000000000000000000000000000 55bf9e2babc63fb5bae4b42c79fb1ddd1f4205fa CI <CI@example.com> 1617579407 +1000 commit (initial): myfile1
55bf9e2babc63fb5bae4b42c79fb1ddd1f4205fa e68c1143545a09cac1db6e6f20db13b82b5dc43e CI <CI@example.com> 1617579407 +1000 commit: myfile2
e68c1143545a09cac1db6e6f20db13b82b5dc43e ba001a041f64109b238f03550d6a21209bd5d4fc CI <CI@example.com> 1617579407 +1000 commit: myfile3
ba001a041f64109b238f03550d6a21209bd5d4fc 6f31cc35ebabdf3fb71759e3d267677e712f737f CI <CI@example.com> 1617579407 +1000 commit: myfile4
6f31cc35ebabdf3fb71759e3d267677e712f737f ecc083de4d216847c184c72a639743bba6520d88 CI <CI@example.com> 1617579409 +1000 commit: commit

View File

@ -0,0 +1,2 @@
x�ΝA
ƒ0@Ρ®s�ΩΚ�'J\y��L¨ΰ�")΄·Χ#tϋyπS5[Λ¥ν�€*©`”Ε2³R�¨‹T</|ΟΒ%¦ΎsρΣ^u‡i†Η4�ϊ�φήτ–�=�„|οFWBDwΦs�τOξμWΦMΙ3‰,Υ

View File

@ -1,2 +0,0 @@
x�ÎM
Â0@a×9Eö‚Ìdò7 "tÕc$í Œ-%‚ÞÞÁíã[¼imméÙŸú.bK"�%°Â<‹(G–ÈZ#Åìbœ�« Îc4[ÙåÕ­zŸˆ0i¦4ûš!x%aáÌ!'(…ˆk5åÝën‡Ñ^‡ñ.ŸÒ¶§\¦µÝ,F@ÎèØ3"€9ê1ÕåOnÚW—§8óvÄ9w

View File

@ -1,2 +0,0 @@
x█▌M
б0F]Гы 2сЭM@DХ╙г≤N3X0╤■z{sW<▐O╤Zвf1ШS;J╠ц▄и E\т;╖Л²*/Х■@hv8HХ+еЛ|■WЁ Ь░S`G·"ц'┼s"│ йЛеП╩=╤ц▌⌠╫▌с╫|╦Ноr▒╜ч,ЖH&ь3Ж°И╢÷jЕOщт╞╝оБл═╪9д

View File

@ -0,0 +1,4 @@
x�ÎA
1 …a×=Eö‚4M§± "ÌjŽ‘¶)
Ö†
ß.<€ÛÇ÷àÏkk�éÐwU +˜…ükÑLÎOÉ:QÉ5±+¥ªO”Ôl²ë«C¨„9Ó¤IR©4ò•Š ˜•ÑU&®FÞý¾î0/p™—›~¤mO=åµ]Ãøpô6­µf¬#ªëŸüçÍe);a

View File

@ -1 +1 @@
459260de735f85c64517eef30e6a2d2236f3f920
ecc083de4d216847c184c72a639743bba6520d88

View File

@ -1,226 +1 @@
[
{
"Timestamp": 41,
"Event": {
"Type": 1,
"Mod": 0,
"Key": 0,
"Ch": 0,
"Width": 0,
"Height": 0,
"Err": null,
"MouseX": 0,
"MouseY": 0,
"N": 0,
"Bytes": null
}
},
{
"Timestamp": 1042,
"Event": {
"Type": 0,
"Mod": 0,
"Key": 32,
"Ch": 0,
"Width": 0,
"Height": 0,
"Err": null,
"MouseX": 0,
"MouseY": 0,
"N": 1,
"Bytes": "IA=="
}
},
{
"Timestamp": 1602,
"Event": {
"Type": 0,
"Mod": 0,
"Key": 0,
"Ch": 99,
"Width": 0,
"Height": 0,
"Err": null,
"MouseX": 0,
"MouseY": 0,
"N": 1,
"Bytes": "Yw=="
}
},
{
"Timestamp": 2010,
"Event": {
"Type": 0,
"Mod": 0,
"Key": 0,
"Ch": 109,
"Width": 0,
"Height": 0,
"Err": null,
"MouseX": 0,
"MouseY": 0,
"N": 1,
"Bytes": "bQ=="
}
},
{
"Timestamp": 2170,
"Event": {
"Type": 0,
"Mod": 0,
"Key": 0,
"Ch": 121,
"Width": 0,
"Height": 0,
"Err": null,
"MouseX": 0,
"MouseY": 0,
"N": 1,
"Bytes": "eQ=="
}
},
{
"Timestamp": 2234,
"Event": {
"Type": 0,
"Mod": 0,
"Key": 32,
"Ch": 0,
"Width": 0,
"Height": 0,
"Err": null,
"MouseX": 0,
"MouseY": 0,
"N": 1,
"Bytes": "IA=="
}
},
{
"Timestamp": 2354,
"Event": {
"Type": 0,
"Mod": 0,
"Key": 0,
"Ch": 99,
"Width": 0,
"Height": 0,
"Err": null,
"MouseX": 0,
"MouseY": 0,
"N": 1,
"Bytes": "Yw=="
}
},
{
"Timestamp": 2410,
"Event": {
"Type": 0,
"Mod": 0,
"Key": 0,
"Ch": 111,
"Width": 0,
"Height": 0,
"Err": null,
"MouseX": 0,
"MouseY": 0,
"N": 1,
"Bytes": "bw=="
}
},
{
"Timestamp": 2578,
"Event": {
"Type": 0,
"Mod": 0,
"Key": 0,
"Ch": 109,
"Width": 0,
"Height": 0,
"Err": null,
"MouseX": 0,
"MouseY": 0,
"N": 1,
"Bytes": "bQ=="
}
},
{
"Timestamp": 2690,
"Event": {
"Type": 0,
"Mod": 0,
"Key": 0,
"Ch": 109,
"Width": 0,
"Height": 0,
"Err": null,
"MouseX": 0,
"MouseY": 0,
"N": 1,
"Bytes": "bQ=="
}
},
{
"Timestamp": 2730,
"Event": {
"Type": 0,
"Mod": 0,
"Key": 0,
"Ch": 105,
"Width": 0,
"Height": 0,
"Err": null,
"MouseX": 0,
"MouseY": 0,
"N": 1,
"Bytes": "aQ=="
}
},
{
"Timestamp": 2850,
"Event": {
"Type": 0,
"Mod": 0,
"Key": 0,
"Ch": 116,
"Width": 0,
"Height": 0,
"Err": null,
"MouseX": 0,
"MouseY": 0,
"N": 1,
"Bytes": "dA=="
}
},
{
"Timestamp": 2954,
"Event": {
"Type": 0,
"Mod": 0,
"Key": 13,
"Ch": 0,
"Width": 0,
"Height": 0,
"Err": null,
"MouseX": 0,
"MouseY": 0,
"N": 1,
"Bytes": "DQ=="
}
},
{
"Timestamp": 3625,
"Event": {
"Type": 0,
"Mod": 0,
"Key": 0,
"Ch": 113,
"Width": 0,
"Height": 0,
"Err": null,
"MouseX": 0,
"MouseY": 0,
"N": 1,
"Bytes": "cQ=="
}
}
]
{"KeyEvents":[{"Timestamp":9223372036854,"Mod":0,"Key":256,"Ch":32},{"Timestamp":9223372036854,"Mod":0,"Key":256,"Ch":99},{"Timestamp":9223372036854,"Mod":0,"Key":256,"Ch":99},{"Timestamp":9223372036854,"Mod":0,"Key":256,"Ch":111},{"Timestamp":9223372036854,"Mod":0,"Key":256,"Ch":109},{"Timestamp":9223372036854,"Mod":0,"Key":256,"Ch":109},{"Timestamp":9223372036854,"Mod":0,"Key":256,"Ch":105},{"Timestamp":9223372036854,"Mod":0,"Key":256,"Ch":116},{"Timestamp":9223372036854,"Mod":0,"Key":13,"Ch":13},{"Timestamp":9223372036854,"Mod":0,"Key":256,"Ch":113}]}