-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
refactor: 自作 DI コンテナドライバの追加 #1271
Conversation
Deploying with
|
Latest commit: |
7d6e247
|
Status: | ✅ Deploy successful! |
Preview URL: | https://6984f127.oreorebot2.pages.dev |
Branch Preview URL: | https://feat-1270.oreorebot2.pages.dev |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #1271 +/- ##
=======================================
Coverage ? 58.94%
=======================================
Files ? 112
Lines ? 7325
Branches ? 530
=======================================
Hits ? 4318
Misses ? 2478
Partials ? 529
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
close #1270.
Type of Change:
リファクタリング
Details of implementation (実施内容)
新しく
src/driver/
フォルダを追加しました. これはドライバ層という名前を付けたモジュールに相当するもので,runner
,service
,model
などのアプリケーションの下位層がさらに依存する土台として用意しました.これに
DepRegistry
クラスと型情報追加用のDep0
, ヘルパーの型エイリアスであるGetDep0
などを追加して下位層を全体的にリファクタリングしました. また, 併せてテストコードも動作するように修正しました.これによりエントリポイント側の注入処理に必要な引数が少なくなり, コードの見通しがかなり良くなったと思います.
Additional Information (追加情報)
モジュールの追加に伴い開発者向けドキュメントの更新が必要になるかもしれません. 要調査です.