Skip to content

Commit

Permalink
increase coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
ericphanson committed Oct 22, 2024
1 parent cb3e8db commit d0a7b70
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ using Pkg
# (e.g. since the table was generated on Julia pre-1.9), we should still print a reasonable message:
err = Legolas.UnknownSchemaVersionError(Legolas.SchemaVersion("test-provider-pkg.foo", 1), :TestProviderPkg, missing)
@test contains(sprint(Base.showerror, err), "TestProviderPkg")

# Test a table that does not have the metadata
err = Legolas.UnknownSchemaVersionError(Legolas.SchemaVersion("test.issue-94-parent", 1), missing, missing)
@test_throws err Legolas.read("issue-94.arrow")
# Still a reasonable message
@test contains(sprint(Base.showerror, err), "UnknownSchemaVersionError: encountered unknown Legolas schema")
end

# Now load the package, and verify we can write the tables with this metadata
Expand Down

0 comments on commit d0a7b70

Please sign in to comment.