mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-07 21:24:33 +08:00
12
test/command_callback/test_gosimple_command_callback.vader
Normal file
12
test/command_callback/test_gosimple_command_callback.vader
Normal file
@@ -0,0 +1,12 @@
|
||||
Before:
|
||||
runtime ale_linters/go/gosimple.vim
|
||||
call ale#test#SetFilename('../go_files/testfile2.go')
|
||||
|
||||
After:
|
||||
call ale#linter#Reset()
|
||||
|
||||
Execute(The default gosimple command should be correct):
|
||||
AssertEqual 'cd ' . ale#Escape(expand('%:p:h')) . ' && '
|
||||
\ . ' gosimple .',
|
||||
\ ale_linters#go#gosimple#GetCommand(bufnr(''))
|
||||
|
||||
Reference in New Issue
Block a user