Skip to content

Add test for attributes#77

Merged
hahnjo merged 1 commit into
root-project:mainfrom
undefined-panda:attributes-test
Jul 17, 2026
Merged

Add test for attributes#77
hahnjo merged 1 commit into
root-project:mainfrom
undefined-panda:attributes-test

Conversation

@undefined-panda

@undefined-panda undefined-panda commented Jun 30, 2026

Copy link
Copy Markdown
Collaborator

Skip write.C for versions that don't support attributes (everything before 6.40) and read.C if binary for attributes doesn't exist.

Closes #69

@jblomer jblomer left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

In principle looks good to me. Since we are at it, I think we should make the test slightly more interesting and write three entries, with one attribute attached to the first entry and another attribute attached to the second and third entry.

And then, for a corner case, also test an attribute for an empty RNTuple.

Comment thread structure/attributes/write.C Outdated
Comment thread structure/attributes/read.C Outdated
Comment thread structure/attributes/read.C Outdated
Comment thread structure/attributes/read.C Outdated
Comment thread structure/attributes/read.C Outdated
Comment thread structure/attributes/read.C Outdated
Comment thread structure/attributes/README.md Outdated
Comment thread structure/attributes/read.C Outdated
@undefined-panda
undefined-panda force-pushed the attributes-test branch 3 times, most recently from 0fa2cd4 to 047cee5 Compare July 8, 2026 13:01
Comment thread structure/attributes/read.C Outdated
Comment thread structure/attributes/read.C Outdated
Comment thread structure/attributes/read.C Outdated
Comment thread structure/attributes/read.C Outdated
Comment thread structure/attributes/README.md Outdated
Comment thread structure/attributes/read.C Outdated
Comment thread structure/attributes/README.md Outdated
Comment thread structure/attributes/README.md Outdated
Comment thread structure/attributes/read.C Outdated
Comment thread structure/attributes/README.md Outdated
Comment thread structure/attributes/write.C Outdated
Comment thread structure/attributes/read.C Outdated
Comment thread structure/attributes/read.C Outdated
Comment thread structure/attributes/read.C
Comment thread structure/attributes/README.md Outdated
Comment thread structure/attributes/read.C Outdated
Comment thread structure/attributes/read.C Outdated
Comment thread structure/attributes/read.C Outdated
Comment thread structure/attributes/README.md Outdated
Comment thread structure/attributes/README.md Outdated
Comment thread Makefile Outdated

@hahnjo hahnjo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Sorry, last two things I just noticed

Comment thread structure/attributes/read.C
Comment thread structure/attributes/README.md Outdated
@hahnjo
hahnjo merged commit 8520a00 into root-project:main Jul 17, 2026
1 check 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.

Tests for RNTuple Attributes

3 participants