Skip to content

feat: Add unit tests for line_utils functions#695

Open
gittihub-jpg wants to merge 1 commit into
imDarshanGK:mainfrom
gittihub-jpg:fix/issue-20260530-543
Open

feat: Add unit tests for line_utils functions#695
gittihub-jpg wants to merge 1 commit into
imDarshanGK:mainfrom
gittihub-jpg:fix/issue-20260530-543

Conversation

@gittihub-jpg
Copy link
Copy Markdown

Closes #543

Description

Adds comprehensive unit tests for line_utils to prevent incorrect position mapping during analysis.

  • Covers splitting, indexing, and line number mapping functions in backend/app/services/line_utils.py.
  • Uses pytest parametrization to validate boundary conditions, large inputs, and malformed data.

Special Notes

  • backend/tests/test_line_utils.py: Parametrized test suite for split, index, and mapping utilities.
  • backend/app/services/line_utils.py: No functional changes; only test coverage added.

Related Issue

Fixes #543

Type of change

  • Bug fix
  • New feature / enhancement
  • Documentation update
  • Test addition
  • Refactor

Checklist

  • I have read CONTRIBUTING.md
  • My branch is up to date with main
  • I have run pytest -v and all tests pass
  • I have not introduced duplicate issues or features
  • My PR title follows the format: feat/fix/docs/test: short description
  • I have added tests for new features (Level 2 and 3 issues)
  • No hardcoded secrets or API keys in my code
  • This PR is linked to a GSSoC 2026 issue
  • Backwards compatibility maintained

Screenshots (if applicable)

Fixes imDarshanGK#543

Signed-off-by: gittihub-jpg <rico@springer-mail.net>
@gittihub-jpg gittihub-jpg marked this pull request as ready for review May 30, 2026 20:59
@gittihub-jpg gittihub-jpg requested a review from imDarshanGK as a code owner May 30, 2026 20:59
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.

Add unit tests for line_utils functions

1 participant