summaryrefslogtreecommitdiff
path: root/test/handler/test_solhint_handler.vader
diff options
context:
space:
mode:
authorFranco Victorio <victorio.franco@gmail.com>2017-12-05 16:02:15 -0300
committerFranco Victorio <victorio.franco@gmail.com>2017-12-05 16:02:15 -0300
commit85e0bd33141a05216848e525b3e86b6698aa38cd (patch)
tree9f292e9e769dc16c553879c199703b8474e51eaf /test/handler/test_solhint_handler.vader
parent57e1b03435c94cd93748a87ee9fbd285452d91ca (diff)
downloadale-85e0bd33141a05216848e525b3e86b6698aa38cd.zip
Extract error code from message
Diffstat (limited to 'test/handler/test_solhint_handler.vader')
-rw-r--r--test/handler/test_solhint_handler.vader18
1 files changed, 12 insertions, 6 deletions
diff --git a/test/handler/test_solhint_handler.vader b/test/handler/test_solhint_handler.vader
index 43e3505c..a3ed5d57 100644
--- a/test/handler/test_solhint_handler.vader
+++ b/test/handler/test_solhint_handler.vader
@@ -10,37 +10,43 @@ Execute(The vint handler should parse error messages correctly):
\ {
\ 'lnum': 1,
\ 'col': 17,
- \ 'text': 'Compiler version must be fixed (compiler-fixed)',
+ \ 'text': 'Compiler version must be fixed',
+ \ 'code': 'compiler-fixed',
\ 'type': 'W',
\ },
\ {
\ 'lnum': 4,
\ 'col': 8,
- \ 'text': 'Use double quotes for string literals (quotes)',
+ \ 'text': 'Use double quotes for string literals',
+ \ 'code': 'quotes',
\ 'type': 'E',
\ },
\ {
\ 'lnum': 5,
\ 'col': 8,
- \ 'text': 'Use double quotes for string literals (quotes)',
+ \ 'text': 'Use double quotes for string literals',
+ \ 'code': 'quotes',
\ 'type': 'E',
\ },
\ {
\ 'lnum': 13,
\ 'col': 3,
- \ 'text': 'Expected indentation of 4 spaces but found 2 (indent)',
+ \ 'text': 'Expected indentation of 4 spaces but found 2',
+ \ 'code': 'indent',
\ 'type': 'E',
\ },
\ {
\ 'lnum': 14,
\ 'col': 3,
- \ 'text': 'Expected indentation of 4 spaces but found 2 (indent)',
+ \ 'text': 'Expected indentation of 4 spaces but found 2',
+ \ 'code': 'indent',
\ 'type': 'E',
\ },
\ {
\ 'lnum': 47,
\ 'col': 3,
- \ 'text': 'Function order is incorrect, public function can not go after internal function. (func-order)',
+ \ 'text': 'Function order is incorrect, public function can not go after internal function.',
+ \ 'code': 'func-order',
\ 'type': 'E',
\ },
\ ],