Skip to content

Commit

Permalink
use TestsForCodecPackages.jl (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
nhz2 authored Aug 11, 2024
1 parent 45d9bc0 commit 849c91f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 20 deletions.
9 changes: 1 addition & 8 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,11 @@ name = "CodecBase"
uuid = "6c391c72-fb7b-5838-ba82-7cfb1bcfecbf"
license = "MIT"
authors = ["Kenta Sato <[email protected]>"]
version = "0.3.3"
version = "0.3.4"

[deps]
TranscodingStreams = "3bb67fe8-82b1-5028-8e26-92a6c54297fa"

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

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

[targets]
test = ["Test", "Random"]
5 changes: 5 additions & 0 deletions test/Project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[deps]
CodecBase = "6c391c72-fb7b-5838-ba82-7cfb1bcfecbf"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
TestsForCodecPackages = "c2e61002-3542-480d-8b3c-5f05cc4f8554"
TranscodingStreams = "3bb67fe8-82b1-5028-8e26-92a6c54297fa"
19 changes: 7 additions & 12 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
using CodecBase
using Test
using Random
import TranscodingStreams:
using TranscodingStreams:
TranscodingStreams,
TranscodingStream,
TranscodingStream
using TestsForCodecPackages:
test_roundtrip_read,
test_roundtrip_write,
test_roundtrip_lines,
test_roundtrip_seekstart,
test_roundtrip_transcode

@testset "DecodeError" begin
Expand Down Expand Up @@ -67,9 +68,7 @@ end
test_roundtrip_read(Base16EncoderStream, Base16DecoderStream)
test_roundtrip_write(Base16EncoderStream, Base16DecoderStream)
test_roundtrip_lines(Base16EncoderStream, Base16DecoderStream)
if isdefined(TranscodingStreams, :test_roundtrip_seekstart)
TranscodingStreams.test_roundtrip_seekstart(Base16EncoderStream, Base16DecoderStream)
end
test_roundtrip_seekstart(Base16EncoderStream, Base16DecoderStream)
test_roundtrip_transcode(Base16Encoder, Base16Decoder)
end

Expand Down Expand Up @@ -121,9 +120,7 @@ end
test_roundtrip_read(Base32EncoderStream, Base32DecoderStream)
test_roundtrip_write(Base32EncoderStream, Base32DecoderStream)
test_roundtrip_lines(Base32EncoderStream, Base32DecoderStream)
if isdefined(TranscodingStreams, :test_roundtrip_seekstart)
TranscodingStreams.test_roundtrip_seekstart(Base32EncoderStream, Base32DecoderStream)
end
test_roundtrip_seekstart(Base32EncoderStream, Base32DecoderStream)
test_roundtrip_transcode(Base32Encoder, Base32Decoder)
end

Expand Down Expand Up @@ -174,8 +171,6 @@ end
test_roundtrip_read(Base64EncoderStream, Base64DecoderStream)
test_roundtrip_write(Base64EncoderStream, Base64DecoderStream)
test_roundtrip_lines(Base64EncoderStream, Base64DecoderStream)
if isdefined(TranscodingStreams, :test_roundtrip_seekstart)
TranscodingStreams.test_roundtrip_seekstart(Base64EncoderStream, Base64DecoderStream)
end
test_roundtrip_seekstart(Base64EncoderStream, Base64DecoderStream)
test_roundtrip_transcode(Base64Encoder, Base64Decoder)
end

2 comments on commit 849c91f

@nhz2
Copy link
Member Author

@nhz2 nhz2 commented on 849c91f 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/112902

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.3.4 -m "<description of version>" 849c91fc1585629dbd4cb64860bd359720dc5762
git push origin v0.3.4

Please sign in to comment.