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

all: apply loopvar fixups #997

Merged
merged 5 commits into from
Sep 21, 2023
Merged

all: apply loopvar fixups #997

merged 5 commits into from
Sep 21, 2023

Conversation

sbinet
Copy link
Member

@sbinet sbinet commented Sep 21, 2023

No description provided.

This CL adds a struct-field type/tag consistency check when creating
ReadVars from structs.

Basically, it's (for now) to detect mismatches between capacities of arrays
from the Go type with that of the groot-tag.

e.g.:
 struct {
  AOk [6]int64
  Bad [7]int64
 }

Signed-off-by: Sebastien Binet <[email protected]>
Signed-off-by: Sebastien Binet <[email protected]>
Signed-off-by: Sebastien Binet <[email protected]>
Signed-off-by: Sebastien Binet <[email protected]>
@codecov-commenter
Copy link

Codecov Report

Merging #997 (a1242aa) into main (921ddd2) will increase coverage by 0.08%.
The diff coverage is 96.20%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

@@            Coverage Diff             @@
##             main     #997      +/-   ##
==========================================
+ Coverage   72.79%   72.87%   +0.08%     
==========================================
  Files         420      420              
  Lines       63701    63749      +48     
==========================================
+ Hits        46372    46460      +88     
+ Misses      14945    14902      -43     
- Partials     2384     2387       +3     
Files Changed Coverage Δ
groot/rhist/h2_gen.go 87.54% <33.33%> (ø)
groot/rhist/h1_gen.go 86.90% <66.66%> (ø)
groot/rtree/rvar.go 90.77% <95.58%> (+1.98%) ⬆️
groot/rbase/attaxis.go 88.75% <100.00%> (ø)
groot/rbase/attfill.go 84.61% <100.00%> (ø)
groot/rbase/attline.go 81.81% <100.00%> (ø)
groot/rbase/attmarker.go 81.81% <100.00%> (ø)
groot/rbase/named.go 88.52% <100.00%> (ø)
groot/rbase/object.go 100.00% <100.00%> (ø)
groot/rcont/list.go 73.58% <100.00%> (ø)
... and 3 more

... and 5 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@sbinet sbinet merged commit a1242aa into go-hep:main Sep 21, 2023
6 checks passed
@sbinet sbinet deleted the go-loopvar branch September 21, 2023 11:40
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