diff options
author | offa <bm-dev@yandex.com> | 2022-02-06 05:08:10 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-06 14:08:10 +0900 |
commit | 7cbb68da6c5664a4e2aba533fe1f969373c60d5c (patch) | |
tree | f8968beb750bb1b52a4744a50127a3c2288fa6b1 /test/handler | |
parent | 0c276aac90f5a49fcf2609d348a11ee0608dd558 (diff) | |
download | ale-7cbb68da6c5664a4e2aba533fe1f969373c60d5c.zip |
Add oelint-adv support (#4043)
Diffstat (limited to 'test/handler')
-rw-r--r-- | test/handler/test_bitbake_oelint_adv_handler.vader | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/test/handler/test_bitbake_oelint_adv_handler.vader b/test/handler/test_bitbake_oelint_adv_handler.vader new file mode 100644 index 00000000..a52e8810 --- /dev/null +++ b/test/handler/test_bitbake_oelint_adv_handler.vader @@ -0,0 +1,28 @@ +Before: + runtime ale_linters/bitbake/oelint_adv.vim + +After: + Restore + + call ale#linter#Reset() + +Execute(The oelint_adv handler should handle warnings): + AssertEqual + \ [ + \ { + \ 'lnum': 1234, + \ 'type': 'I', + \ 'code': 'oelint.var.suggestedvar.BUGTRACKER', + \ 'text': 'Variable ''BUGTRACKER'' should be set', + \ }, + \ { + \ 'lnum': 17, + \ 'type': 'E', + \ 'code': 'oelint.var.mandatoryvar.DESCRIPTION', + \ 'text': 'Variable ''DESCRIPTION'' should be set', + \ }, + \ ], + \ ale_linters#bitbake#oelint_adv#Handle(1, [ + \ '/meta-x/recipes-y/example/example_1.0.bb:1234:info:oelint.var.suggestedvar.BUGTRACKER:Variable ''BUGTRACKER'' should be set', + \ '[31mexample2_1.1.bb:17:error:oelint.var.mandatoryvar.DESCRIPTION:Variable ''DESCRIPTION'' should be set[0m', + \ ]) |