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

Clean up static-analysis-server unit tests #592

Open
wants to merge 2 commits into
base: jf/process_req
Choose a base branch
from

Conversation

jasonforal
Copy link
Collaborator

What problem are you trying to solve?

The static-analysis-server unit tests are written by manually constructing ServerRule structs. This makes test cases harder to author (e.g. one needs to manually convert to base64 and calculate a checksum) and harder to quickly ascertain what data is different between test cases.

What is your solution?

DRY up the tests by adding helper functions

Alternatives considered

What the reviewer should know

  • process_analysis_request (in the tests) was renamed to shorthand_process_req to disambiguate it.

@jasonforal jasonforal requested a review from a team as a code owner December 24, 2024 14:16
@jasonforal jasonforal requested review from rjcoulter22 and amaanq and removed request for rjcoulter22 December 24, 2024 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant