Skip to content

Conversation

saahilmahato
Copy link
Contributor

@saahilmahato saahilmahato commented Oct 4, 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

This PR adds implementation of the Digital Differential Analyzer line drawing algorithm, along with unit tests.

Changes include:

DDALine.java — implements the algorithm.
DDALineTest.java — JUnit tests with 100% coverage for the implementation.

@codecov-commenter
Copy link

codecov-commenter commented Oct 4, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 75.70%. Comparing base (7e29be3) to head (65c71a9).

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #6616      +/-   ##
============================================
+ Coverage     75.68%   75.70%   +0.02%     
- Complexity     5754     5756       +2     
============================================
  Files           699      700       +1     
  Lines         19725    19738      +13     
  Branches       3826     3827       +1     
============================================
+ Hits          14929    14943      +14     
+ Misses         4216     4215       -1     
  Partials        580      580              

☔ 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.

@saahilmahato saahilmahato marked this pull request as ready for review October 4, 2025 10:34
@saahilmahato
Copy link
Contributor Author

Hi @alxkm , this PR seems to have gone unnoticed. I would appreciate it if you could review it when you have time. Thanks. 😄

Copy link
Member

@DenizAltunkapan DenizAltunkapan 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! @saahilmahato

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.

3 participants