mcarleio / konvert

This kotlin compiler plugin is using KSP API and generates kotlin code to map one class to another
https://mcarleio.github.io/konvert/
Apache License 2.0
93 stars 8 forks source link

feat: implement injector for spring and cdi #3

Closed mcarleio closed 1 year ago

mcarleio commented 1 year ago

Add the possibility to create custom injectors and added a spring and cdi inejctor to fulfill #1

codecov[bot] commented 1 year ago

Codecov Report

Patch coverage: 81.39% and project coverage change: +0.30 :tada:

Comparison is base (2ed657a) 82.27% compared to head (bddb0bb) 82.57%.

:exclamation: Current head bddb0bb differs from pull request most recent head 84e0b16. Consider uploading reports for the commit 84e0b16 to get more accurate results

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #3 +/- ## ========================================== + Coverage 82.27% 82.57% +0.30% ========================================== Files 41 45 +4 Lines 1647 1727 +80 Branches 225 237 +12 ========================================== + Hits 1355 1426 +71 - Misses 158 161 +3 - Partials 134 140 +6 ``` | [Impacted Files](https://codecov.io/gh/mcarleio/konvert/pull/3?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Marcel) | Coverage Δ | | |---|---|---| | [...tlin/io/mcarle/konvert/processor/TestExtensions.kt](https://codecov.io/gh/mcarleio/konvert/pull/3?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Marcel#diff-cHJvY2Vzc29yL3NyYy90ZXN0Rml4dHVyZXMva290bGluL2lvL21jYXJsZS9rb252ZXJ0L3Byb2Nlc3Nvci9UZXN0RXh0ZW5zaW9ucy5rdA==) | `87.50% <ø> (ø)` | | | [...o/mcarle/konvert/injector/spring/SpringInjector.kt](https://codecov.io/gh/mcarleio/konvert/pull/3?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Marcel#diff-aW5qZWN0b3JzL3NwcmluZy1pbmplY3Rvci9zcmMvbWFpbi9rb3RsaW4vaW8vbWNhcmxlL2tvbnZlcnQvaW5qZWN0b3Ivc3ByaW5nL1NwcmluZ0luamVjdG9yLmt0) | `73.33% <73.33%> (ø)` | | | [...tlin/io/mcarle/konvert/injector/cdi/CdiInjector.kt](https://codecov.io/gh/mcarleio/konvert/pull/3?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Marcel#diff-aW5qZWN0b3JzL2NkaS1pbmplY3Rvci9zcmMvbWFpbi9rb3RsaW4vaW8vbWNhcmxlL2tvbnZlcnQvaW5qZWN0b3IvY2RpL0NkaUluamVjdG9yLmt0) | `78.94% <78.94%> (ø)` | | | [...onvert/processor/konvert/KonverterCodeGenerator.kt](https://codecov.io/gh/mcarleio/konvert/pull/3?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Marcel#diff-cHJvY2Vzc29yL3NyYy9tYWluL2tvdGxpbi9pby9tY2FybGUva29udmVydC9wcm9jZXNzb3Iva29udmVydC9Lb252ZXJ0ZXJDb2RlR2VuZXJhdG9yLmt0) | `96.22% <100.00%> (+0.67%)` | :arrow_up: | | [...tlin/io/mcarle/konvert/processor/KonverterITest.kt](https://codecov.io/gh/mcarleio/konvert/pull/3?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Marcel#diff-cHJvY2Vzc29yL3NyYy90ZXN0Rml4dHVyZXMva290bGluL2lvL21jYXJsZS9rb252ZXJ0L3Byb2Nlc3Nvci9Lb252ZXJ0ZXJJVGVzdC5rdA==) | `100.00% <100.00%> (ø)` | | Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Marcel). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Marcel)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.