Skip to content

Conversation

@atonaamz
Copy link
Contributor

@atonaamz atonaamz commented Oct 3, 2025

Problem

add tests for inline utils files

Solution

add tests for inline utils files and remove unused files

Coverage should go to 85% after this change: https://app.codecov.io/gh/aws/language-servers/commit/b91f1a0de8b711cd1ce24a7389b64daf15e06f72/tree/server/aws-lsp-codewhisperer/src/language-server?dropdown=coverage

License

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

}
}

/** src: https://github.com/aws/aws-toolkit-vscode/blob/3921457b0a2094b831beea0d66cc2cbd2a833890/packages/amazonq/src/app/inline/EditRendering/diffUtils.ts#L18
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We are not using these methods anywhere

return secondString.slice(0, i)
}

/**
Copy link
Contributor Author

@atonaamz atonaamz Oct 3, 2025

Choose a reason for hiding this comment

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

@atonaamz atonaamz force-pushed the unitests2 branch 3 times, most recently from e93097c to 334f693 Compare October 3, 2025 18:02
@codecov-commenter
Copy link

codecov-commenter commented Oct 3, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 61.23%. Comparing base (35f0795) to head (c634af0).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2385      +/-   ##
==========================================
+ Coverage   60.84%   61.23%   +0.39%     
==========================================
  Files         261      261              
  Lines       58437    58281     -156     
  Branches     3558     3579      +21     
==========================================
+ Hits        35556    35689     +133     
+ Misses      22814    22524     -290     
- Partials       67       68       +1     
Flag Coverage Δ
unittests 61.23% <100.00%> (+0.39%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@atonaamz atonaamz marked this pull request as ready for review October 3, 2025 18:17
@atonaamz atonaamz requested a review from a team as a code owner October 3, 2025 18:17
@atonaamz atonaamz changed the title test(amazonq): add tests for inline utils files chore(amazonq): add tests for inline utils files Oct 3, 2025
@atonaamz atonaamz changed the title chore(amazonq): add tests for inline utils files chore(amazonq): add more tests for inline completion codes Oct 3, 2025
@atonaamz atonaamz merged commit e4a1717 into aws:main Oct 6, 2025
6 checks passed
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