File: test_dafny_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-- 1,060 bytes parent folder | download | duplicates (2)
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/dafny/dafny.vim

After:
  call ale#linter#Reset()

Execute(The Dafny handler should parse output correctly):
  AssertEqual
  \ [
  \   {
  \     'filename': 'File.dfy',
  \     'col': 45,
  \     'lnum': 123,
  \     'text': 'A precondition for this call might not hold.',
  \     'type': 'E'
  \   },
  \   {
  \     'filename': 'File.dfy',
  \     'col': 90,
  \     'lnum': 678,
  \     'text': 'This is the precondition that might not hold.',
  \     'type': 'W'
  \   },
  \   {
  \     'filename': 'File.dfy',
  \     'col': 45,
  \     'lnum': 123,
  \     'text': "Verification of 'Impl$$_22_Proof.__default.PutKeepsMapsFull' timed out after 2 seconds",
  \     'type': 'E'
  \   },
  \ ],
  \ ale_linters#dafny#dafny#Handle(0, [
  \ 'File.dfy(123,45): Error BP5002: A precondition for this call might not hold.',
  \ 'File.dfy(678,90): Related location: This is the precondition that might not hold.',
  \ "File.dfy(123,45): Verification of 'Impl$$_22_Proof.__default.PutKeepsMapsFull' timed out after 2 seconds",
  \ ])