File: test_thriftcheck_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 (28 lines) | stat: -rw-r--r-- 801 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
26
27
28
Before:
  runtime ale_linters/thrift/thriftcheck.vim

After:
  call ale#linter#Reset()

Execute(The thriftcheck handler should handle basic warnings and errors):
  AssertEqual
  \ [
  \   {
  \     'lnum': 1,
  \     'col': 1,
  \     'type': 'E',
  \     'text': '"py" namespace must match "^idl\\."',
  \     'code': 'namespace.pattern',
  \   },
  \   {
  \     'lnum': 3,
  \     'col': 5,
  \     'type': 'W',
  \     'text': '64-bit integer constant -2147483649 may not work in all languages',
  \     'code': 'int.64bit',
  \   },
  \ ],
  \ ale_linters#thrift#thriftcheck#Handle(1, [
  \   'file.thrift:1:1: error: "py" namespace must match "^idl\\." (namespace.pattern)',
  \   'file.thrift:3:5: warning: 64-bit integer constant -2147483649 may not work in all languages (int.64bit)',
  \ ])