-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
added pattern test cases for F, G and H alphabet detectors #3590
added pattern test cases for F, G and H alphabet detectors #3590
Conversation
64adcd0
to
4e20fb9
Compare
@@ -20,6 +19,9 @@ type Scanner struct { | |||
|
|||
// Ensure the Scanner satisfies the interfaces at compile time. | |||
var _ detectors.Detector = (*Scanner)(nil) | |||
var _ detectors.EndpointCustomizer = (*Scanner)(nil) |
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.
Added this because a engine test case was failing due to missing method in this detector.
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.
hey @kashifkhan0771 would you mind double checking some comments here around this. I might've misunderstood Miccah's comment and tried to fix this issue with: #3592
Not sure if I made it worse 😓
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.
Your fix is definitely the right approach! I had the same thought that we are not actually using endpoint customizer in this detector. I didn't remove it though, because I was worried it might accidentally break something. 🫢
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.
Thank you for double checking. ❤️
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.
Done 🚀 Updated with your changes from main.
Description:
This PR add the pattern test cases for detectors starting with alphabet
f
toh
. It also separate the integration test cases for those detectors.Test Output:
Checklist:
make test-community
)?make lint
this requires golangci-lint)?