Skip to content

Commit

Permalink
use TestsForCodecPackages (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
nhz2 authored Aug 11, 2024
1 parent b419f9d commit 938e35b
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 20 deletions.
12 changes: 2 additions & 10 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,12 @@ name = "CodecXz"
uuid = "ba30903b-d9e8-5048-a5ec-d1f5b0d4b47b"
license = "MIT"
authors = ["Kenta Sato <[email protected]>"]
version = "0.7.3"
version = "0.7.4"

[deps]
Libdl = "8f399da3-3557-5675-b5ff-fb832c97cbdb"
TranscodingStreams = "3bb67fe8-82b1-5028-8e26-92a6c54297fa"
XZ_jll = "ffd25f8a-64ca-5728-b0f7-c24cf3aae800"

[compat]
TranscodingStreams = "0.9, 0.10, 0.11"
julia = "1.3"

[extras]
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"

[targets]
test = ["Test", "Random"]
julia = "1.6"
1 change: 0 additions & 1 deletion src/CodecXz.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import TranscodingStreams:
initialize,
finalize,
splitkwargs
using Libdl
using XZ_jll

include("liblzma.jl")
Expand Down
5 changes: 5 additions & 0 deletions test/Project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[deps]
CodecXz = "ba30903b-d9e8-5048-a5ec-d1f5b0d4b47b"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
TestsForCodecPackages = "c2e61002-3542-480d-8b3c-5f05cc4f8554"
TranscodingStreams = "3bb67fe8-82b1-5028-8e26-92a6c54297fa"
16 changes: 7 additions & 9 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using CodecXz
using Random
using TranscodingStreams
using TranscodingStreams: TranscodingStreams
using TestsForCodecPackages
using Test

@testset "Xz Codec" begin
Expand All @@ -27,13 +27,11 @@ using Test
@test XzCompressorStream <: TranscodingStreams.TranscodingStream
@test XzDecompressorStream <: TranscodingStreams.TranscodingStream

TranscodingStreams.test_roundtrip_read(XzCompressorStream, XzDecompressorStream)
TranscodingStreams.test_roundtrip_write(XzCompressorStream, XzDecompressorStream)
TranscodingStreams.test_roundtrip_lines(XzCompressorStream, XzDecompressorStream)
if isdefined(TranscodingStreams, :test_roundtrip_seekstart)
TranscodingStreams.test_roundtrip_seekstart(XzCompressorStream, XzDecompressorStream)
end
TranscodingStreams.test_roundtrip_transcode(XzCompressor, XzDecompressor)
test_roundtrip_read(XzCompressorStream, XzDecompressorStream)
test_roundtrip_write(XzCompressorStream, XzDecompressorStream)
test_roundtrip_lines(XzCompressorStream, XzDecompressorStream)
test_roundtrip_seekstart(XzCompressorStream, XzDecompressorStream)
test_roundtrip_transcode(XzCompressor, XzDecompressor)

@test_throws ArgumentError XzCompressor(level=10)
@test_throws ArgumentError XzDecompressor(memlimit=0)
Expand Down

2 comments on commit 938e35b

@nhz2
Copy link
Member Author

@nhz2 nhz2 commented on 938e35b Aug 11, 2024

Choose a reason for hiding this comment

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

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

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

Registration pull request created: JuliaRegistries/General/112901

Tip: Release Notes

Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.

@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

To add them here just re-invoke and the PR will be updated.

Tagging

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.7.4 -m "<description of version>" 938e35bd00a3d04337f1ef7ed7ac0296746dfce8
git push origin v0.7.4

Please sign in to comment.