Skip to content

Commit e0a4822

Browse files
CopilotMoelf
andcommitted
Add test documenting embedded basket limitation
Co-authored-by: Moelf <5306213+Moelf@users.noreply.github.com>
1 parent 9c19ab5 commit e0a4822

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

test/issues.jl

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,3 +109,23 @@ end
109109
df = LazyTree(UnROOT.samplefile("TLeafC_pr342.root"), "G4Sim")
110110
@test all(df.Process[1:10] .== ["Radioactivation", "msc", "eIoni", "Transportation", "ionIoni", "Radioactivation", "msc", "eIoni", "ionIoni", "Radioactivation"])
111111
end
112+
113+
# Issue: EOF when trying to open files with recovered/embedded baskets
114+
# Files with embedded baskets (fNbytes <= fKeylen) from premature closure
115+
# are not yet fully supported. This is a known limitation.
116+
# See: https://github.com/JuliaHEP/UnROOT.jl/issues/XXX
117+
@testset "Embedded baskets limitation" begin
118+
# This test documents the known limitation with files containing embedded baskets
119+
# Such files occur when ROOT files are closed prematurely (e.g., process crash)
120+
# and ROOT's recovery mechanism stores uncompressed basket data inline
121+
122+
# TODO: Add test file with embedded baskets when support is implemented
123+
# For now, this serves as documentation that such files are not yet supported
124+
125+
# Example of what should eventually work:
126+
# f = UnROOT.samplefile("file_with_embedded_baskets.root")
127+
# tree = f["tree_name"]
128+
# @test tree.fEntries > 0
129+
130+
@test_skip false # Placeholder - remove when support is added
131+
end

0 commit comments

Comments
 (0)