-
Notifications
You must be signed in to change notification settings - Fork 1.6k
detect-pcre: convert DetectPcreTestSig01 to FAIL/PASS API #14184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
NOTE: This PR may contain new authors. |
victorjulien
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Formatting check fails as there is a space too many on 1588.
I also think that a PR for just a single test while there are more tests to do in the same file is a bit too much.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #14184 +/- ##
==========================================
+ Coverage 83.87% 84.19% +0.32%
==========================================
Files 1011 1013 +2
Lines 275671 262226 -13445
==========================================
- Hits 231207 220770 -10437
+ Misses 44464 41456 -3008
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To complement Victor's review:
Please ensure that all tests are now fully following the FAIL/ PASS API approach.
If you check bdf292b for instance you'll have some examples of what can be improved here.
Note, too, that once all possible FAIL possibilities have been checked, the tests should call any Freeing loginc and PASS. We don't want if branches in the unittests, once this conversion is done.
And please remember to add the ticket number to the commit message ;)
|
Thank you @victorjulien and @jufajardini for the feedback. I just wanted to confirm one last thing. So for the new PR with feedback that I'll open that means I'll have to convert it to a draft right? until all tests have fully followed the FAIL/ PASS API approach for this ticket. |
Hi Cherry, I am an intern just like you, just trying to help out in a little way I can, you can submit as a normal PR, just ensure that you incorporate all feedbacks from mentors into your new PR, the clang-format failed, so after you have made changes to your branch, you need to use the clang-format to format your branch use As as regards your commit message, try checking out the doc on commit message, there has to be an empty space between your commit title and commit message body, for instance: I hope this helps |
|
Followed by: #14220 |
Make sure these boxes are checked accordingly before submitting your Pull Request -- thank you.
Contribution style:
https://docs.suricata.io/en/latest/devguide/contributing/contribution-process.html
Our Contribution agreements:
https://suricata.io/about/contribution-agreement/ (note: this is only required once)
Changes (if applicable):
(including schema descriptions)
https://redmine.openinfosecfoundation.org/projects/suricata/issues
Link to ticket: https://redmine.openinfosecfoundation.org/issues/6344
Describe changes:
Provide values to any of the below to override the defaults.
link to the pull request in the respective
_BRANCHvariable.SV_REPO=
SV_BRANCH=
SU_REPO=
SU_BRANCH=