File: test_v_command_callback.vader

package info (click to toggle)
vim-ale 3.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 8,408 kB
  • sloc: sh: 497; python: 311; perl: 31; makefile: 4; javascript: 1
file content (25 lines) | stat: -rw-r--r-- 593 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Before:
  Save g:ale_v_v_executable

  call ale#assert#SetUpLinterTest('v', 'v')

  GivenCommandOutput ['/foo/bar', '/foo/baz']

After:
  Restore
  call ale#assert#TearDownLinterTest()

Execute(The default command should be correct):
  AssertLinter 'v', 'v . -o /tmp/vim-ale-v'

Execute(Extra options should be supported):
  let g:ale_v_v_options = '--foo-bar'

  AssertLinter 'v', 'v --foo-bar . -o /tmp/vim-ale-v'

  let g:ale_v_vbuild_options = ''

Execute(The executable should be configurable):
  let g:ale_v_v_executable = 'foobar'

  AssertLinter 'foobar', 'foobar . -o /tmp/vim-ale-v'