Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: add comprehensive test coverage for ProcessDetails entity class #6590

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

Conversation

Copy link
Contributor

@yashsaha555 yashsaha555 commented Oct 2, 2025

  • 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

  • Add ProcessDetailsTest.java with 20 comprehensive test methods

  • Cover all constructors, getters, and setters

  • Include edge cases: null values, negatives, zeros, max values

  • Add real-world scheduling scenario tests

  • Ensure 100% line coverage for ProcessDetails class

  • Follow project checkstyle rules and conventions

Fixes #6588

...TheAlgorithms#6588)
- Add ProcessDetailsTest.java with 20 comprehensive test methods
- Cover all constructors, getters, and setters
- Include edge cases: null values, negatives, zeros, max values
- Add real-world scheduling scenario tests
- Ensure 100% line coverage for ProcessDetails class
- Follow project checkstyle rules and conventions
Fixes TheAlgorithms#6588 
Copy link

codecov-commenter commented Oct 2, 2025
edited
Loading

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 75.60%. Comparing base (2be984f) to head (8be1e21).

Additional details and impacted files
@@ Coverage Diff @@
## master #6590 +/- ##
============================================
+ Coverage 75.57% 75.60% +0.03% 
- Complexity 5721 5724 +3 
============================================
 Files 695 695 
 Lines 19637 19637 
 Branches 3812 3812 
============================================
+ Hits 14840 14846 +6 
+ Misses 4218 4213 -5 
+ Partials 579 578 -1 

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

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

yashsaha555 and others added 2 commits October 2, 2025 18:42
- Add assertions for process1 in testMultipleProcessesIndependence method
- Verify both processes are properly tested for independence
- Ensure all created objects are meaningfully used in tests
Fixes SpotBugs warning: UC_USELESS_OBJECT at line 224
Copy link
Member

@alxkm alxkm left a comment

Choose a reason for hiding this comment

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

Looks good. Thanks for improving test coverage.

@alxkm alxkm merged commit f43ecd5 into TheAlgorithms:master Oct 2, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers

@alxkm alxkm alxkm approved these changes

@DenizAltunkapan DenizAltunkapan Awaiting requested review from DenizAltunkapan DenizAltunkapan is a code owner

@yanglbme yanglbme Awaiting requested review from yanglbme yanglbme is a code owner

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

[FEATURE REQUEST] Add Test Coverage for ProcessDetails Entity Class

AltStyle によって変換されたページ (->オリジナル) /