File: test_ada_gcc_handler.vader

package info (click to toggle)
vim-ale 4.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 8,764 kB
  • sloc: sh: 499; python: 311; perl: 31; makefile: 4; xml: 4; javascript: 1
file content (36 lines) | stat: -rw-r--r-- 848 bytes parent folder | download | duplicates (3)
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
26
27
28
29
30
31
32
33
34
35
36
Before:
  runtime ale_linters/ada/gcc.vim

After:
  call ale#linter#Reset()

Execute(The gcc handler for Ada should parse input correctly):
  AssertEqual
  \ [
  \   {
  \     'bufnr': 0,
  \     'lnum': 8,
  \     'col': 5,
  \     'type': 'W',
  \     'text': 'variable "X" is assigned but never read',
  \   },
  \   {
  \     'bufnr': 0,
  \     'lnum': 6,
  \     'col': 22,
  \     'type': 'E',
  \     'text': 'type definition expected',
  \   },
  \   {
  \     'bufnr': 0,
  \     'lnum': 8,
  \     'col': 9,
  \     'type': 'E',
  \     'text': 'aspect specifications not allowed here',
  \   },
  \ ],
  \ ale_linters#ada#gcc#Handle(0, [
  \   'foobar.adb:8:05: warning: variable "X" is assigned but never read',
  \   'foobar.ads:6:22: type definition expected',
  \   'foobar.ads:8:09: aspect specifications not allowed here',
  \ ])