Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed Jun 19, 2024
1 parent 3b657ca commit 3ba44bd
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/db/cmd/sarif_add
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,13 @@ sarif add warning ojhow jaslkf
EOF
EXPECT=<<EOF
-- add 1 bad arg
sarif add [type] [id] [message]
sarif add [type] [kind] [id] [message]
type = warning, error, note
kind = notApplicable, pass, fail, review, open, informational
-- add 2 bad args
sarif add [type] [id] [message]
sarif add [type] [kind] [id] [message]
type = warning, error, note
kind = notApplicable, pass, fail, review, open, informational
-- add 3 bad args
sarif add requires a level: warning, error or note as first argument
-- add 3 bad id
Expand Down Expand Up @@ -103,6 +105,7 @@ f sarif.0 256 0x0
"message": {
"text": "this is not ok"
},
"kind": "fail",
"level": "warning",
"locations": [
{
Expand Down

0 comments on commit 3ba44bd

Please sign in to comment.