Skip to content

Add a Reorder() decorator #31

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

Merged
merged 5 commits into from
Apr 15, 2022
Merged

Add a Reorder() decorator #31

merged 5 commits into from
Apr 15, 2022

Conversation

muir
Copy link
Owner

@muir muir commented Apr 15, 2022

Reorder allows a provider move to a different part of the injection chain. This is useful when part of an injection chain is prebuilt and part is comes from another source and it's useful to pull some of the extra providers can provide inputs to the prebuilt portion.

Also a bugfix: Shun() wasn't given the priority it needed. It now is.

@codecov-commenter
Copy link

codecov-commenter commented Apr 15, 2022

Codecov Report

Merging #31 (b763f3d) into main (c8be771) will increase coverage by 2.29%.
The diff coverage is 96.62%.

@@            Coverage Diff             @@
##             main      #31      +/-   ##
==========================================
+ Coverage   79.71%   82.00%   +2.29%     
==========================================
  Files          15       17       +2     
  Lines        2401     2651     +250     
==========================================
+ Hits         1914     2174     +260     
+ Misses        323      313      -10     
  Partials      164      164              
Impacted Files Coverage Δ
api.go 93.82% <ø> (ø)
include.go 92.47% <80.00%> (+0.16%) ⬆️
debug.go 89.43% <88.88%> (+5.19%) ⬆️
reorder.go 97.60% <97.60%> (ø)
bind.go 88.20% <100.00%> (+1.31%) ⬆️
characterize.go 83.68% <100.00%> (+0.20%) ⬆️
intheap.go 100.00% <100.00%> (ø)
nject.go 78.39% <100.00%> (+0.07%) ⬆️
type_codes.go 94.28% <100.00%> (+3.80%) ⬆️
match.go 90.56% <0.00%> (-3.78%) ⬇️
... and 3 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c8be771...b763f3d. Read the comment docs.

@muir muir merged commit eb16c23 into main Apr 15, 2022
@muir muir deleted the reorder2 branch April 15, 2022 02:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants