This repository has been archived on 2024-07-19. You can view files and clone it, but cannot push or open issues or pull requests.
ale/test/command_callback/test_dartanalyzer_command_callback.vader

21 lines
660 B
Text
Raw Normal View History

Before:
call ale#assert#SetUpLinterTest('dart', 'dartanalyzer')
After:
call ale#assert#TearDownLinterTest()
Execute(The default command and executable should be correct):
AssertLinter 'dartanalyzer', ale#Escape('dartanalyzer') . ' %s'
Execute(The executable should be configurable):
let g:ale_dart_dartanalyzer_executable = 'foobar'
AssertLinter 'foobar', ale#Escape('foobar') . ' %s'
Execute(The .packages file should be set if detected):
call ale#test#SetFilename('dart_paths/foo')
AssertLinter 'dartanalyzer', ale#Escape('dartanalyzer')
\ . ' --packages ' . ale#Escape(ale#path#Simplify(g:dir . '/dart_paths/.packages'))
\ . ' %s'