ale/test/handler/test_zeek_handler.vader

18 lines
395 B
Plaintext
Raw Normal View History

2021-10-24 12:05:55 +00:00
Before:
runtime ale_linters/zeek/zeek.vim
After:
call ale#linter#Reset()
Execute(The zeek handler should parse input correctly):
AssertEqual
\ [
\ {
\ 'lnum': 2,
\ 'text': 'unknown identifier bar, at or near "bar"'
\ },
\ ],
\ ale_linters#zeek#zeek#HandleErrors(bufnr(''), [
\ 'error in /tmp/foo.zeek, line 2: unknown identifier bar, at or near "bar"'
\ ])