ale/test/linter/test_gawk.vader

26 lines
837 B
Plaintext
Raw Normal View History

Before:
call ale#assert#SetUpLinterTest('awk', 'gawk')
After:
call ale#assert#TearDownLinterTest()
Execute(The default command should be correct):
AssertLinter 'gawk',
2018-08-03 00:00:39 +00:00
\ ale#Escape('gawk') . ' --source ' . ale#Escape('BEGIN { exit } END { exit 1 }')
\ . ' --lint -f %t /dev/null'
Execute(The executable should be configurable):
let b:ale_awk_gawk_executable = '/other/gawk'
AssertLinter '/other/gawk',
2018-08-03 00:00:39 +00:00
\ ale#Escape('/other/gawk') . ' --source ' . ale#Escape('BEGIN { exit } END { exit 1 }')
\ . ' --lint -f %t /dev/null'
Execute(The options should be configurable):
let b:ale_awk_gawk_executable = 'gawk'
let b:ale_awk_gawk_options = '--lint=no-ext'
AssertLinter 'gawk',
2018-08-03 00:00:39 +00:00
\ ale#Escape('gawk') . ' --source ' . ale#Escape('BEGIN { exit } END { exit 1 }')
\ . ' --lint --lint=no-ext -f %t /dev/null'