]> git.madduck.net Git - etc/vim.git/blob - .vim/bundle/ale/test/handler/test_llc_handler.vader

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Merge commit '76265755a1add77121c8f9dabb3e9bb70fe9a972' as '.vim/bundle/ale'
[etc/vim.git] / .vim / bundle / ale / test / handler / test_llc_handler.vader
1 Before:
2   runtime! ale_linters/llvm/llc.vim
3
4 After:
5   call ale#linter#Reset()
6
7 Execute(llc handler should parse errors output for STDIN):
8   AssertEqual
9   \ [
10   \   {
11   \      'lnum': 10,
12   \      'col': 7,
13   \      'text': "error: value doesn't match function result type 'i32'",
14   \      'type': 'E',
15   \   },
16   \   {
17   \      'lnum': 10,
18   \      'col': 13,
19   \      'text': "error: use of undefined value '@foo'",
20   \      'type': 'E',
21   \   },
22   \ ],
23   \ ale_linters#llvm#llc#HandleErrors(bufnr(''), [
24   \   "llc: <stdin>:10:7: error: value doesn't match function result type 'i32'",
25   \   'ret i64 0',
26   \   '    ^',
27   \   '',
28   \   "llc: <stdin>:10:13: error: use of undefined value '@foo'",
29   \   'call void @foo(i64 %0)',
30   \   '          ^',
31   \ ])
32
33 Execute(llc handler should parse errors output for some file):
34   call ale#test#SetFilename('test.ll')
35   AssertEqual
36   \ [
37   \   {
38   \      'lnum': 10,
39   \      'col': 7,
40   \      'text': "error: value doesn't match function result type 'i32'",
41   \      'type': 'E',
42   \   },
43   \   {
44   \      'lnum': 10,
45   \      'col': 13,
46   \      'text': "error: use of undefined value '@foo'",
47   \      'type': 'E',
48   \   },
49   \ ],
50   \ ale_linters#llvm#llc#HandleErrors(bufnr(''), [
51   \   "llc: /path/to/test.ll:10:7: error: value doesn't match function result type 'i32'",
52   \   'ret i64 0',
53   \   '    ^',
54   \   '',
55   \   "llc: /path/to/test.ll:10:13: error: use of undefined value '@foo'",
56   \   'call void @foo(i64 %0)',
57   \   '          ^',
58   \ ])