yii-debug-api icon indicating copy to clipboard operation
yii-debug-api copied to clipboard

Tests

Open xepozz opened this issue 1 year ago • 2 comments

Q A
Is bugfix? ✔️/❌
New feature? ✔️/❌
Breaks BC? ✔️/❌
Fixed issues

https://github.com/yiisoft/yii-debug/pull/248

xepozz avatar Mar 03 '24 11:03 xepozz

PR Summary

  • Integration of Http Message Library The necessary package httpsoft/http-message version ^1.1 was added into the project for HTTP message handling functionalities, i.e. to manage HTTP requests, responses, uploaded files etc which aids in better overall communication process in the application.

  • Code Cleanup in DebugApiProvider.php An unnecessary import Psr\Container\ContainerInterface has been removed, which resulted in cleaner and easy to understand code in DebugApiProvider.php.

  • Improvement of Function Argument in DebugApiProvider.php The argument type in RouteCollectorInterface closure was updated in DebugApiProvider.php for increased code consistency and reliability.

  • Optimization in CollectorRepository.php An enhancement was made by changing the (string)$name code in CollectorRepository.php to improve code efficiency.

  • Added New Files for Testing & Stubbing New test files have been added DebugHeadersTest.php, ResponseDataWrapperTest.php, DebugApiProviderTest.php, CollectorRepositoryTest.php. These files help in ensuring the individual functionalities work as expected and improves the overall stability of the application. Additionally, a new file StubCollector.php was added which helps in providing a temporary substitute for yet-to-develop or sensitive functionalities during testing phase.

what-the-diff[bot] avatar Mar 03 '24 11:03 what-the-diff[bot]

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 9.37%. Comparing base (e4a6c26) to head (57195e0). Report is 3 commits behind head on master.

:exclamation: Current head 57195e0 differs from pull request most recent head 85291b4

Please upload reports for the commit 85291b4 to get more accurate results.

Additional details and impacted files
@@             Coverage Diff             @@
##             master    #137      +/-   ##
===========================================
+ Coverage      3.01%   9.37%   +6.35%     
  Complexity      255     255              
===========================================
  Files            22      22              
  Lines          1325    1302      -23     
===========================================
+ Hits             40     122      +82     
+ Misses         1285    1180     -105     

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov[bot] avatar Mar 05 '24 06:03 codecov[bot]