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

Open
wants to merge 7 commits into
base: develop
Choose a base branch
from

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.658%. remained the same
when pulling 2c4417f on bencomp:compare-class-not-classname
into 9c098f9 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
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: No status
Development

Successfully merging this pull request may close these issues.

None yet

4 participants