Skip to content

Add tests for logger to increase coverage#648

Merged
Hmnt39 merged 11 commits intomasterfrom
hemant/logger_coverage
Apr 9, 2026
Merged

Add tests for logger to increase coverage#648
Hmnt39 merged 11 commits intomasterfrom
hemant/logger_coverage

Conversation

@Hmnt39
Copy link
Copy Markdown
Contributor

@Hmnt39 Hmnt39 commented Mar 26, 2026

This PR improves test coverage for the logging and callback utilities by adding unit tests.

@Hmnt39 Hmnt39 force-pushed the hemant/logger_coverage branch from 7fab6d6 to f3875c1 Compare March 26, 2026 09:39
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 26, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.08%. Comparing base (53172dc) to head (63b8147).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #648      +/-   ##
==========================================
+ Coverage   77.94%   78.08%   +0.13%     
==========================================
  Files         136      136              
  Lines       13228    13228              
  Branches     1991     1991              
==========================================
+ Hits        10311    10329      +18     
+ Misses       2080     2062      -18     
  Partials      837      837              

see 5 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Hmnt39 Hmnt39 marked this pull request as ready for review March 26, 2026 10:43
@Hmnt39 Hmnt39 requested a review from a team as a code owner March 26, 2026 10:43
@Hmnt39
Copy link
Copy Markdown
Contributor Author

Hmnt39 commented Apr 1, 2026

/gemini review

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces new unit tests for CallbackUtil and expands the LoggingTest suite to verify different logger configurations and levels. Feedback was provided regarding a potential IOException on Windows in the new logging tests, where the test.log file is deleted before the ServiceProvider is disposed, which may cause file lock conflicts.

@Hmnt39 Hmnt39 requested a review from devendra-lohar April 1, 2026 06:47
devendra-lohar
devendra-lohar previously approved these changes Apr 1, 2026
Copy link
Copy Markdown
Contributor

@devendra-lohar devendra-lohar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Hmnt39 Hmnt39 added the waiting-for-risk-review Waiting for a member of the risk review team to take an action label Apr 1, 2026
@Hmnt39 Hmnt39 removed the waiting-for-risk-review Waiting for a member of the risk review team to take an action label Apr 1, 2026
devendra-lohar
devendra-lohar previously approved these changes Apr 6, 2026
@Hmnt39 Hmnt39 added the waiting-for-risk-review Waiting for a member of the risk review team to take an action label Apr 6, 2026
@msusag msusag self-assigned this Apr 8, 2026
@msusag msusag added the risk-review-ongoing Risk review is in progress label Apr 8, 2026
@msusag msusag added waiting-for-team Waiting for the submitter or reviewer of the PR to take an action and removed waiting-for-risk-review Waiting for a member of the risk review team to take an action labels Apr 8, 2026
@msusag
Copy link
Copy Markdown

msusag commented Apr 8, 2026

@Hmnt39 , I added some questions related to the logfile name, please see #648 (comment)

@Hmnt39 Hmnt39 added waiting-for-risk-review Waiting for a member of the risk review team to take an action and removed waiting-for-team Waiting for the submitter or reviewer of the PR to take an action labels Apr 8, 2026
@Hmnt39 Hmnt39 requested a review from msusag April 8, 2026 13:22
@msusag msusag added waiting-for-team Waiting for the submitter or reviewer of the PR to take an action and removed waiting-for-risk-review Waiting for a member of the risk review team to take an action labels Apr 8, 2026
@Hmnt39 Hmnt39 requested a review from msusag April 9, 2026 04:29
@Hmnt39 Hmnt39 added waiting-for-risk-review Waiting for a member of the risk review team to take an action and removed waiting-for-team Waiting for the submitter or reviewer of the PR to take an action labels Apr 9, 2026
devendra-lohar
devendra-lohar previously approved these changes Apr 9, 2026
@msusag
Copy link
Copy Markdown

msusag commented Apr 9, 2026

🦄

@msusag msusag added waiting-for-team Waiting for the submitter or reviewer of the PR to take an action and removed waiting-for-risk-review Waiting for a member of the risk review team to take an action labels Apr 9, 2026
@Hmnt39 Hmnt39 merged commit 8724278 into master Apr 9, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk-review-ongoing Risk review is in progress waiting-for-team Waiting for the submitter or reviewer of the PR to take an action

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants