Skip to content

[hist] Exception safety in RHistStats, test for RHist#21687

Open
hahnjo wants to merge 4 commits intoroot-project:masterfrom
hahnjo:hist-exception-safety
Open

[hist] Exception safety in RHistStats, test for RHist#21687
hahnjo wants to merge 4 commits intoroot-project:masterfrom
hahnjo:hist-exception-safety

Conversation

@hahnjo
Copy link
Member

@hahnjo hahnjo commented Mar 25, 2026

For exception safety, first perform all checks before modifying the object.

hahnjo added 4 commits March 25, 2026 11:38
First check all arguments before modifying the object.
This does not require code changes because RHistEngine::Fill is more
strict (via RAxes::ComputeGlobalIndex) than RHistStats::Fill, and the
RHist constructor disables dimensions with a categorical axis.
First check all dimensions before modifying the object.
This does not require code changes because RHistEngine::Add ensures
an identical axis configuration, which is more strict than the checks
in RHistStats::Add.
@hahnjo hahnjo self-assigned this Mar 25, 2026
@hahnjo hahnjo added the in:Hist label Mar 25, 2026
@github-actions
Copy link

Test Results

    22 files      22 suites   3d 6h 9m 54s ⏱️
 3 832 tests  3 831 ✅  1 💤 0 ❌
75 651 runs  75 633 ✅ 18 💤 0 ❌

Results for commit 73053cb.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant