Skip to content

Commit

Permalink
[ntuple] test loading entries with emulated fields
Browse files Browse the repository at this point in the history
  • Loading branch information
silverweed committed Dec 17, 2024
1 parent b3a09e3 commit f23490a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tree/ntuple/v7/test/ntuple_emulated.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,10 @@ struct Outer {
ASSERT_EQ(inner->GetSubFields().size(), 2);
ASSERT_EQ(inner->GetSubFields()[0]->GetFieldName(), "fInt1");
}

// Now test loading entries with a reader
RNTupleDescriptor::RCreateModelOptions cmOpts;
cmOpts.fEmulateUnknownTypes = true;
reader = RNTupleReader::Open(cmOpts, "ntpl", fileGuard.GetPath());
reader->LoadEntry(0);
}

0 comments on commit f23490a

Please sign in to comment.