blob: f95e84236c0856e02b4b6b40c2b2ff774a3dc62c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
Before:
runtime ale_linters/go/gotype.vim
call ale#test#SetFilename('../go_files/testfile2.go')
After:
call ale#linter#Reset()
Execute(The gotype callback should include other files from the directory but exclude the file itself):
let dir = expand('#' . bufnr('') . ':p:h')
AssertEqual
\ "gotype %t ". ale#Escape(ale#path#Simplify(dir . "/testfile.go")),
\ 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(''))
|