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

Compare classes, not classnames in tests #9014

Merged
merged 8 commits into from
Jul 12, 2024

Conversation

bencomp
Copy link
Contributor

@bencomp bencomp commented Oct 3, 2022

What this PR does / why we need it:

This replaces a few comparisons of object types through their class's names with type comparisons using instanceof in tests.

Which issue(s) this PR closes:

Does not close it, but relates to #9021.

Special notes for your reviewer:

Suggestions on how to test this:

Does this PR introduce a user interface change? If mockups are available, please link/include them here:

Is there a release notes update needed for this change?:

Additional documentation:

Instead of comparing class names, the tests assert that
`result instanceof Class` (for each appropriate class).
@coveralls
Copy link

coveralls commented Aug 24, 2023

Coverage Status

coverage: 20.627%. remained the same
when pulling 3eb0172 on bencomp:compare-class-not-classname
into a466c97 on IQSS:develop.

@bencomp
Copy link
Contributor Author

bencomp commented Oct 5, 2023

@sekmiller could you say if this is a good change?

@bencomp
Copy link
Contributor Author

bencomp commented Oct 30, 2023

@qqmyers would you be able to review this?

@pdurbin pdurbin added Size: 3 A percentage of a sprint. 2.1 hours. Component: Code Infrastructure formerly "Feature: Code Infrastructure" labels Feb 28, 2024
@stevenwinship stevenwinship self-assigned this Jul 12, 2024
@stevenwinship stevenwinship merged commit 5ba74e8 into IQSS:develop Jul 12, 2024
11 checks passed
@stevenwinship stevenwinship removed their assignment Jul 12, 2024
@pdurbin pdurbin added this to the 6.4 milestone Jul 12, 2024
@bencomp bencomp deleted the compare-class-not-classname branch July 12, 2024 22:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Code Infrastructure formerly "Feature: Code Infrastructure" Size: 3 A percentage of a sprint. 2.1 hours.
Projects
Status: Done 🧹
Development

Successfully merging this pull request may close these issues.

5 participants