Skip to content

🐛 fix(ownership): remove N+1 in BasePolicy, add comprehensive test co…

e633c18
Select commit
Loading
Failed to load commit list.
Open

♻️ refactor(ownership): move to polymorphic relationship for governed models #120

🐛 fix(ownership): remove N+1 in BasePolicy, add comprehensive test co…
e633c18
Select commit
Loading
Failed to load commit list.
Codecov / codecov/project failed Mar 31, 2026 in 0s

71.59% (target 90.00%)

View this Pull Request on Codecov

71.59% (target 90.00%)

Details

Codecov Report

❌ Patch coverage is 89.10891% with 11 lines in your changes missing coverage. Please review.
✅ Project coverage is 71.59%. Comparing base (e3cc99c) to head (e633c18).

Files with missing lines Patch % Lines
src/Listeners/CreatedListener.php 79.48% 8 Missing ⚠️
src/Traits/Governable.php 85.00% 3 Missing ⚠️

❌ Your project check has failed because the head coverage (71.59%) is below the target coverage (90.00%). You can increase the head coverage or adjust the target coverage.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #120      +/-   ##
============================================
+ Coverage     70.65%   71.59%   +0.94%     
- Complexity      373      390      +17     
============================================
  Files            53       54       +1     
  Lines          1537     1609      +72     
============================================
+ Hits           1086     1152      +66     
- Misses          451      457       +6     
Files with missing lines Coverage Δ
src/GovernorOwnable.php 100.00% <100.00%> (ø)
src/Listeners/CreatingInvitationListener.php 100.00% <100.00%> (ø)
src/Listeners/CreatingListener.php 94.73% <100.00%> (+0.29%) ⬆️
src/Notifications/TeamInvitation.php 82.60% <100.00%> (+1.65%) ⬆️
src/Policies/BasePolicy.php 88.54% <100.00%> (+0.24%) ⬆️
src/Team.php 84.21% <100.00%> (+3.77%) ⬆️
src/Traits/Governing.php 90.56% <100.00%> (-9.44%) ⬇️
src/Traits/Governable.php 88.57% <85.00%> (+1.90%) ⬆️
src/Listeners/CreatedListener.php 83.33% <79.48%> (+20.17%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.