Skip to content
Snippets Groups Projects

Add type check and tests for Entity::mergeAndReset

All threads resolved!

Entity::mergeAndReset now throws an exception if it is passed an Entity of a different type.

A test has also been added to test merges involving Entity objects created in different ways (which caused them to show different types in a previous implementation). The current implementation passes the test.

I was unable to reproduce a bug I had previously seen in Allen (where two Entities with seemingly identical type indices would fail the check). However, the offending code has since been removed in an update to Allen so this is no longer an issue. I suspect the issue may have arisen from comparing between Histograms constructed in code within different Allen libraries but it is no longer practical or necessary to investigate further.

Addresses #207 (closed)

Edited by Daniel Charles Craik

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Christoph Hasse resolved all threads

    resolved all threads

  • Daniel Charles Craik resolved all threads

    resolved all threads

  • Marco Clemencic changed milestone to %v36r3

    changed milestone to %v36r3

  • Edited by Software for LHCb
  • added 21 commits

    Compare with previous version

  • Marco Clemencic mentioned in merge request !1267 (merged)

    mentioned in merge request !1267 (merged)

  • Sebastien Ponce resolved all threads

    resolved all threads

  • Sebastien Ponce mentioned in merge request !1258 (merged)

    mentioned in merge request !1258 (merged)

  • Marco Clemencic mentioned in merge request !1278 (merged)

    mentioned in merge request !1278 (merged)

  • Marco Clemencic approved this merge request

    approved this merge request

  • Please register or sign in to reply
    Loading