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

groot/rdict: leverage rbytes.{Unm,M}arshaler implementation in Bind #881

Merged
merged 6 commits into from
Dec 16, 2021

Conversation

sbinet
Copy link
Member

@sbinet sbinet commented Dec 16, 2021

Fixes #880.

@codecov-commenter
Copy link

codecov-commenter commented Dec 16, 2021

Codecov Report

Merging #881 (ca6099b) into main (975023e) will increase coverage by 0.00%.
The diff coverage is 72.72%.

❗ Current head ca6099b differs from pull request most recent head 8b7aabd. Consider uploading reports for the commit 8b7aabd to get more accurate results
Impacted file tree graph

@@           Coverage Diff           @@
##             main     #881   +/-   ##
=======================================
  Coverage   73.12%   73.12%           
=======================================
  Files         392      392           
  Lines       45608    45630   +22     
=======================================
+ Hits        33349    33367   +18     
- Misses      10018    10021    +3     
- Partials     2241     2242    +1     
Impacted Files Coverage Δ
groot/rdict/encoder.go 58.53% <0.00%> (-10.04%) ⬇️
groot/rdict/rdict.go 87.59% <ø> (ø)
groot/rdict/decoder.go 67.34% <100.00%> (+4.55%) ⬆️
groot/rphys/lorentzvector.go 80.95% <100.00%> (+2.57%) ⬆️
groot/rphys/vector2.go 87.87% <100.00%> (+0.37%) ⬆️
groot/rphys/vector3.go 90.24% <100.00%> (+1.05%) ⬆️
groot/rcmd/dump.go 63.63% <0.00%> (+2.59%) ⬆️

Continue to review full report at Codecov.

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

@sbinet sbinet force-pushed the issue-880 branch 3 times, most recently from dc8a318 to 8b7aabd Compare December 16, 2021 14:28
This CL adds a temporary mitigation of go-hep#880.
It tries to detect whether a given receiver for binding implements rbytes.Unmarshaler and
use it instead of generating rstreamers.

rstreamers may not properly work in the case where fields of a struct aren't exported.

Fixes go-hep#880.
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.

Unable to read a LorentzVector from a Tree
2 participants