2018-01-07 12:11:01 +00:00
|
|
|
Before:
|
|
|
|
runtime ale_linters/go/gotype.vim
|
|
|
|
call ale#test#SetFilename('../go_files/testfile2.go')
|
|
|
|
|
|
|
|
After:
|
|
|
|
call ale#linter#Reset()
|
|
|
|
|
2018-03-18 17:16:13 +00:00
|
|
|
Execute(The default gotype command should be correct):
|
|
|
|
AssertEqual 'gotype %s', ale_linters#go#gotype#GetCommand(bufnr(''))
|
2018-01-07 12:11:01 +00:00
|
|
|
|
|
|
|
Execute(The gotype callback should ignore test files):
|
|
|
|
call ale#test#SetFilename('bla_test.go')
|
2018-03-18 17:16:13 +00:00
|
|
|
AssertEqual 0, ale_linters#go#gotype#GetCommand(bufnr(''))
|