Skip to content

Conversation

@soswow
Copy link
Contributor

@soswow soswow commented Jan 6, 2026

Couple tests for src/rawtoaces_core/rawtoaces_core.cpp lines 706-738

Checklist:

  • I have read the contribution guidelines.
  • I have updated the documentation, if applicable. (Check if there is no
    need to update the documentation, for example if this is a bug fix that
    doesn't change the API.)
  • I have ensured that the change is tested somewhere in the testsuite
    (adding new test cases if necessary).
  • My code follows the prevailing code style of this project. If I haven't
    already run clang-format before submitting, I definitely will look at the CI
    test that runs clang-format and fix anything that it highlights as being
    nonconforming.

@soswow
Copy link
Contributor Author

soswow commented Jan 8, 2026

image

@codecov-commenter
Copy link

codecov-commenter commented Jan 8, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.47%. Comparing base (5d62f9a) to head (8fbf555).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #235      +/-   ##
==========================================
+ Coverage   85.70%   87.47%   +1.76%     
==========================================
  Files          11       11              
  Lines        2197     2196       -1     
  Branches      331      331              
==========================================
+ Hits         1883     1921      +38     
+ Misses        314      275      -39     
Files with missing lines Coverage Δ
src/rawtoaces_core/rawtoaces_core.cpp 100.00% <100.00%> (+4.70%) ⬆️
src/rawtoaces_core/spectral_data.cpp 100.00% <ø> (+6.56%) ⬆️

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5d62f9a...8fbf555. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@soswow soswow changed the title Cover error cases in calculate_IDT_matrix Make src/rawtoaces_core/ be covered 100% Jan 8, 2026
@soswow
Copy link
Contributor Author

soswow commented Jan 8, 2026

And rest of them in core now done too

assert( sumVector( out_camera_XYZ_white_point ) != 0 );

return;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

perhaps that line is unreachable because of the return, can we try removing it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeap. that was it.

add_executable (
Test_DNGIdt
testDNGIdt.cpp
test_utils.cpp
Copy link
Contributor

Choose a reason for hiding this comment

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

Not entirely happy with exposing the rawtoaces_util code in the rawtoaces_core tests as an implicit dependency.
Hopefully we'll redo the logging soon, so the stderr capturing won't be needed anymore.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

hopefully I got what you mean and did what asked.

Copy link
Contributor

@antond-weta antond-weta left a comment

Choose a reason for hiding this comment

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

looks good

Signed-off-by: Aleksandr Motsjonov <[email protected]>
Signed-off-by: Aleksandr Motsjonov <[email protected]>
Signed-off-by: Aleksandr Motsjonov <[email protected]>
Copy link
Contributor

@antond-weta antond-weta left a comment

Choose a reason for hiding this comment

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

LGTM

@antond-weta antond-weta merged commit fd17b0b into AcademySoftwareFoundation:main Jan 13, 2026
18 checks passed
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.

3 participants