-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove non-existent property #75
Conversation
One question: is this a bug? Line 123 in 918aff1
-state_type(::Type{SHA3_CTX}) = UInt64
+state_type(::Type{T}) where {T<:SHA3_CTX} = UInt64 |
This all looks good to me; and yes, I believe that |
Personally, I don't think the |
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #75 +/- ##
==========================================
+ Coverage 98.14% 98.96% +0.82%
==========================================
Files 9 9
Lines 484 482 -2
==========================================
+ Hits 475 477 +2
+ Misses 9 5 -4
☔ View full report in Codecov by Sentry. |
Test `short_blocklen` - call -> `state_type`
Ready for merge.
We may need to check the type stability and performance of each API after removing |
This appears to have slipped through the cracks, I'm sorry. Can you resolve the conflicts? |
Thanks for taking that over the finish line, @inkydragon ! |
@staticfloat
tl; dr
Base.getproperty(::SHA2_CTX, )
getproperty(::SHA2_CTX, )
and functiongetproperty(::SHA3_CTX, )
error messages consistentBase.getproperty
1. rm if branch
Property
W
only exists inSHA1_CTX
, not exists in<:SHA2_CTX
.SHA.jl/src/types.jl
Lines 10 to 15 in 918aff1
SHA.jl/src/types.jl
Lines 18 to 22 in 918aff1
2. error msg
SHA.jl/src/types.jl
Line 52 in 918aff1
SHA.jl/src/types.jl
Line 100 in 918aff1
3. more test
https://app.codecov.io/gh/JuliaCrypto/SHA.jl/blob/master/src/types.jl
And furthermore, maybe we can delete the entire
Base.getproperty(::Union{SHA2_CTX, SHA3_CTX}, ...)
.