summaryrefslogtreecommitdiff
path: root/test/command_callback/test_govet_command_callback.vader
blob: a9b296059443d69a926e3d18aeefba7c8c87b3f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Before:
  runtime ale_linters/go/govet.vim

  call ale#test#SetDirectory('/testplugin/test/command_callback')

After:
  Restore

  call ale#linter#Reset()
  call ale#test#RestoreDirectory()

Execute(The default command should be correct):
  AssertEqual
  \ 'cd ' . ale#Escape(expand('%:p:h')) . ' && '
  \ . ' go vet .',
  \ ale_linters#go#govet#GetCommand(bufnr(''))