summaryrefslogtreecommitdiff
path: root/test/handler/test_systemd_analyze_handler.vader
blob: c7d668e08eee3b7e2c2c2af0dcff402bbfe8338b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Before:
  runtime ale_linters/systemd/systemd_analyze.vim

After:
  call ale#linter#Reset()

Execute(The systemd-analyze handler should parse lines correctly):
  AssertEqual
  \ [
  \   {
  \     'lnum': 9,
  \     'col': 1,
  \     'type': 'W',
  \     'text': 'Unknown key name ''Wat'' in section ''Service'', ignoring.',
  \   },
  \ ],
  \ ale_linters#systemd#systemd_analyze#Handle(bufnr(''), [
  \   '/home/user/.config/systemd/user/foo.service:9: Unknown key name ''Wat'' in section ''Service'', ignoring.',
  \ ])