Skip to content
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

Merged

Conversation

kashifkhan0771
Copy link
Contributor

@kashifkhan0771 kashifkhan0771 commented Nov 12, 2024

Description:

This PR add the pattern test cases for detectors starting with alphabet f to h. It also separate the integration test cases for those detectors.

Test Output:

pattern-f-h-tests-01
pattern-f-h-tests-02
pattern-f-h-tests-03
pattern-f-h-tests-04

Checklist:

  • Tests passing (make test-community)?
  • Lint passing (make lint this requires golangci-lint)?

@kashifkhan0771 kashifkhan0771 force-pushed the tests/pattern-test-cases-f-to-h branch from 64adcd0 to 4e20fb9 Compare November 13, 2024 12:01
@@ -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)
Copy link
Contributor Author

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.

Copy link
Collaborator

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 😓

Copy link
Contributor Author

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. 🫢

Copy link
Collaborator

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. ❤️

Copy link
Contributor Author

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.

@kashifkhan0771 kashifkhan0771 marked this pull request as ready for review November 13, 2024 14:45
@kashifkhan0771 kashifkhan0771 requested review from a team as code owners November 13, 2024 14:45
@kashifkhan0771 kashifkhan0771 changed the title added pattern test cases for F, G and H alphabet detectors [WIP] added pattern test cases for F, G and H alphabet detectors Nov 13, 2024
@ahrav ahrav merged commit 3339e29 into trufflesecurity:main Nov 13, 2024
13 checks passed
@kashifkhan0771 kashifkhan0771 deleted the tests/pattern-test-cases-f-to-h branch November 14, 2024 06:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants