Skip to content
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

Increasing UT coverage #346

Draft
wants to merge 60 commits into
base: main
Choose a base branch
from
Draft

Increasing UT coverage #346

wants to merge 60 commits into from

Conversation

KshitijaKakde
Copy link

Description

A few sentences describing the overall goals of the pull request's commits.

GitHub Issues

List the GitHub issues impacted by this PR:

GitHub Issue #

Checklist:

  • I have performed a self-review of my own code to ensure there are no formatting, vetting, linting, or security issues
  • I have verified that new and existing unit tests pass locally with my changes
  • I have not allowed coverage numbers to degenerate
  • I have maintained at least 90% code coverage
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • Backward compatibility is not broken

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Please also list any relevant details for your test configuration

  • Test A
  • Test B

KshitijaKakde and others added 30 commits February 12, 2025 00:42
PR is getting merged to UT-coverage feature branch hence no approval required.
rishabhatdell and others added 30 commits February 17, 2025 08:16
The improvement is the dependency injection for gocsi.Run() which allows
for the unit tests to run a custom Run() function, this solves the main
issue with the failed tests.

The tests with this commit are passing, but most tests are commented
except for "TestMainFunction/LeaderElectionDisabled" and a few others that do
not impact the os.flags of that test. If the other tests are enabled, we end up
with an os.exit due to a flag being redefined, this issue still needs to be sorted to
get all the other tests passing, and then we will need to beef up the
tests to get from 64% which is where we are now to 90%.
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.