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

testing: better testing coverage of null image reader/writer #4578

Merged
merged 1 commit into from
Jan 7, 2025

Conversation

lgritz
Copy link
Collaborator

@lgritz lgritz commented Dec 29, 2024

This improves the mediocre testing line coverage in nullimageio.cpp from 50% to 95%.

  • Test writing
  • Test reading of tiled and MIP-mapped null images
  • Test setting and reading of attributes
  • Simplify some code
  • Along the way, identified and fixed a nullimage bug -- it was answering that it supported "rectangles" but had no write_rectangle method. Testing works!

This improves the medicre testing line coverage in nullimageio.cpp
from 50% to 95%.

* Test writing
* Test reading of tiled and MIP-mapped null images
* Test setting and reading of attributes
* Along the way, identified and fixed a nullimage bug -- it was
  answering that it supported "rectangles" but had no write_rectangle
  method. Testing works!

Signed-off-by: Larry Gritz <[email protected]>
@lgritz
Copy link
Collaborator Author

lgritz commented Jan 7, 2025

Seem ok?

Copy link
Contributor

@grdanny grdanny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks reasonable to me.

@lgritz lgritz merged commit 85ece69 into AcademySoftwareFoundation:main Jan 7, 2025
30 checks passed
lgritz added a commit to lgritz/OpenImageIO that referenced this pull request Jan 8, 2025
…SoftwareFoundation#4578)

This improves the mediocre testing line coverage in nullimageio.cpp from
50% to 95%.

* Test writing
* Test reading of tiled and MIP-mapped null images
* Test setting and reading of attributes
* Simplify some code
* Along the way, identified and fixed a nullimage bug -- it was
answering that it supported "rectangles" but had no write_rectangle
method. Testing works!

Signed-off-by: Larry Gritz <[email protected]>
@lgritz lgritz deleted the lg-null-analysis branch January 15, 2025 21:08
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.

2 participants