mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-08 21:25:32 +02:00
add tests for go config parser
This commit is contained in:
@@ -47,6 +47,24 @@ func TestSSHConfigParsing(t *testing.T) {
|
||||
rt()
|
||||
conf = "env a=b"
|
||||
rt(`export 'a'="b"`)
|
||||
|
||||
conf = "env a=\\"
|
||||
rt(`export 'a'="\\"`)
|
||||
conf = `env
|
||||
\ a=
|
||||
\\`
|
||||
conf = "env\n \t \\ a=\n\\\\"
|
||||
rt(`export 'a'="\\"`)
|
||||
conf = `
|
||||
e
|
||||
\n
|
||||
\v
|
||||
\ a
|
||||
\=
|
||||
\\
|
||||
\`
|
||||
rt(`export 'a'="\\"`)
|
||||
|
||||
conf = "env a=b\nhostname 2\nenv a=c\nenv b=b"
|
||||
rt(`export 'a'="b"`)
|
||||
hostname = "2"
|
||||
|
||||
Reference in New Issue
Block a user