14 lines
421 B
Plaintext
14 lines
421 B
Plaintext
Before:
|
|
runtime ale_linters/go/gotype.vim
|
|
call ale#test#SetFilename('../go_files/testfile2.go')
|
|
|
|
After:
|
|
call ale#linter#Reset()
|
|
|
|
Execute(The default gotype command should be correct):
|
|
AssertEqual 'gotype %s', ale_linters#go#gotype#GetCommand(bufnr(''))
|
|
|
|
Execute(The gotype callback should ignore test files):
|
|
call ale#test#SetFilename('bla_test.go')
|
|
AssertEqual 0, ale_linters#go#gotype#GetCommand(bufnr(''))
|