Massively reduce the amount of code needed for linter tests

This commit is contained in:
w0rp
2018-07-15 18:24:53 +01:00
parent 5155a35a80
commit a42999a639
138 changed files with 1447 additions and 3017 deletions

View File

@@ -1,12 +1,10 @@
Before:
runtime ale_linters/go/gosimple.vim
call ale#assert#SetUpLinterTest('go', 'gosimple')
call ale#test#SetFilename('../go_files/testfile2.go')
After:
call ale#linter#Reset()
call ale#assert#TearDownLinterTest()
Execute(The default gosimple command should be correct):
AssertEqual 'cd ' . ale#Escape(expand('%:p:h')) . ' && '
\ . ' gosimple .',
\ ale_linters#go#gosimple#GetCommand(bufnr(''))
AssertLinter 'gosimple',
\ 'cd ' . ale#Escape(expand('%:p:h')) . ' && gosimple .'