Skip to content

tests: add tests of Mode #5104

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

Merged
merged 1 commit into from
Apr 26, 2024

Conversation

vil02
Copy link
Member

@vil02 vil02 commented Apr 10, 2024

This PR adds tests of the Mode class. It also cleans it up by removing the main method, making it a proper utility and marking the input argument of Mode.mode as final.

  • I have read CONTRIBUTING.md.
  • This pull request is all my own work -- I have not plagiarized it.
  • All filenames are in PascalCase.
  • All functions and variable names follow Java naming conventions.
  • All new algorithms have a URL in their comments that points to Wikipedia or other similar explanations.
  • All new code is formatted with clang-format -i --style=file path/to/your/file.java

@codecov-commenter
Copy link

codecov-commenter commented Apr 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 37.35%. Comparing base (089b1f7) to head (f78db41).

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #5104      +/-   ##
============================================
+ Coverage     37.23%   37.35%   +0.11%     
- Complexity     2343     2350       +7     
============================================
  Files           517      517              
  Lines         15630    15623       -7     
  Branches       2975     2971       -4     
============================================
+ Hits           5820     5836      +16     
+ Misses         9522     9500      -22     
+ Partials        288      287       -1     

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

@vil02 vil02 marked this pull request as ready for review April 10, 2024 20:18
@BamaCharanChhandogi BamaCharanChhandogi enabled auto-merge (squash) April 11, 2024 17:48
@vil02 vil02 force-pushed the add_mode_tests branch 2 times, most recently from dc39085 to 9935af9 Compare April 16, 2024 16:33
@vil02 vil02 force-pushed the add_mode_tests branch 3 times, most recently from ad90bdb to f78db41 Compare April 23, 2024 19:29
@BamaCharanChhandogi BamaCharanChhandogi merged commit 6de154d into TheAlgorithms:master Apr 26, 2024
4 checks passed
@vil02 vil02 deleted the add_mode_tests branch April 26, 2024 06:42
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.

4 participants