install.fairie/dotfiles/.vim/plugged/ale/test/handler/test_scala_handler.vader
Git E2E Dev Test Username e149692cc9 git subrepo clone https://github.com/dense-analysis/ale.git ./dotfiles/.vim/plugged/ale
subrepo:
  subdir:   "dotfiles/.vim/plugged/ale"
  merged:   "e4b205440"
upstream:
  origin:   "https://github.com/dense-analysis/ale.git"
  branch:   "master"
  commit:   "e4b205440"
git-subrepo:
  version:  "0.4.3"
  origin:   "???"
  commit:   "???"
2022-10-18 10:37:09 -04:00

32 lines
808 B
Text

After:
call ale#linter#Reset()
Execute(The handler should return an empty list with empty input):
AssertEqual [], ale#handlers#scala#HandleScalacLintFormat(bufnr(''), [])
Execute(The handler should correctly parse error messages):
AssertEqual
\ [
\ {
\ 'lnum': 4,
\ 'col': 8,
\ 'text': ''':'' expected but identifier found.',
\ 'type': 'E'
\ },
\ {
\ 'lnum': 6,
\ 'col': 2,
\ 'text': 'identifier expected but eof found.',
\ 'type': 'E'
\ }
\ ],
\ ale#handlers#scala#HandleScalacLintFormat(bufnr(''),
\ [
\ "hi.scala:4: error: ':' expected but identifier found.",
\ " Some stupid scala code",
\ " ^",
\ "hi.scala:6: error: identifier expected but eof found.",
\ ")",
\ " ^",
\ "two errors found",
\ ])