Closed rafaqz closed 9 months ago
Merging #15 (d266d0a) into main (f52e483) will increase coverage by
1.40%
. The diff coverage is100.00%
.
@@ Coverage Diff @@
## main #15 +/- ##
==========================================
+ Coverage 77.35% 78.76% +1.40%
==========================================
Files 4 4
Lines 106 113 +7
==========================================
+ Hits 82 89 +7
Misses 24 24
Files | Coverage Δ | |
---|---|---|
src/implements.jl | 86.95% <100.00%> (+5.70%) |
:arrow_up: |
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more
This PR adds
Implemented{T}
andNotImplemented{T}
traits for use in dispatch, as an alternative to thetrue
/false
return values ofimplements
.Bikeshedding on what to call the function requested,
implemented_trait
isn't amazing.Also realised we were not accepting objects, just types, and that really doesn't make sense for traits. So now we accept and test that passing objects to
implements
andimplemented_trait
works.@gdalle if you want to review that would help