Skip to content

Add unit tests for mutex classes#20786

Open
WarLikeLaux wants to merge 3 commits intoyiisoft:masterfrom
WarLikeLaux:add-mutex-tests
Open

Add unit tests for mutex classes#20786
WarLikeLaux wants to merge 3 commits intoyiisoft:masterfrom
WarLikeLaux:add-mutex-tests

Conversation

@WarLikeLaux
Copy link
Contributor

@WarLikeLaux WarLikeLaux commented Mar 7, 2026

Q A
Is bugfix?
New feature?
Tests added? ✔️
Breaks BC?
Fixed issues

What does this PR do?

Adds unit tests for Mutex, DbMutex, and OracleMutex.

Coverage

File Tests Lines MSI
framework/mutex/Mutex.php 7 15/17 (88%) 86% (20/23)
framework/mutex/DbMutex.php 5 2/2 (100%) 0% (0/1)
framework/mutex/OracleMutex.php 8 3/28 (11%) 61% (8/13)

Changelog not required, because no source files changed.

@codecov
Copy link

codecov bot commented Mar 7, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.63%. Comparing base (068c5a4) to head (0e762fd).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@             Coverage Diff              @@
##             master   #20786      +/-   ##
============================================
+ Coverage     78.62%   78.63%   +0.01%     
  Complexity    11566    11566              
============================================
  Files           376      376              
  Lines         30748    30748              
============================================
+ Hits          24176    24180       +4     
+ Misses         6572     6568       -4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@WarLikeLaux WarLikeLaux marked this pull request as ready for review March 7, 2026 17:46
@WarLikeLaux WarLikeLaux changed the title Add tests for mutex classes Add unit tests for mutex classes Mar 7, 2026
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.

1 participant