Skip to content
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

test: Improved test coverage of normalizing claude 3 messages #2893

Merged
merged 1 commit into from
Jan 17, 2025

Conversation

bizob2828
Copy link
Member

Description

In #2870 there were a few missing unit tests around edge cases when calculating the prompt for claude 3 messaging api calls. This PR adds the missing tests.

@bizob2828 bizob2828 added the dev:tests Indicates only changes to tests label Jan 17, 2025
Copy link

@RyanKadri RyanKadri left a comment

Choose a reason for hiding this comment

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

Thanks for adding these in!

@bizob2828 bizob2828 merged commit cc65763 into newrelic:main Jan 17, 2025
27 of 28 checks passed
@bizob2828 bizob2828 deleted the improve-coverage-bedrock branch January 17, 2025 21:52
Copy link

codecov bot commented Jan 17, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.35%. Comparing base (6a83abf) to head (b34caaf).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2893      +/-   ##
==========================================
- Coverage   97.39%   97.35%   -0.05%     
==========================================
  Files         310      310              
  Lines       47512    47512              
==========================================
- Hits        46274    46254      -20     
- Misses       1238     1258      +20     
Flag Coverage Δ
integration-tests-cjs-18.x 73.02% <ø> (-0.01%) ⬇️
integration-tests-cjs-20.x 73.02% <ø> (-0.01%) ⬇️
integration-tests-cjs-22.x 73.05% <ø> (ø)
integration-tests-esm-18.x 49.78% <ø> (ø)
integration-tests-esm-20.x 49.79% <ø> (ø)
integration-tests-esm-22.x 49.83% <ø> (ø)
unit-tests-18.x 88.99% <ø> (+<0.01%) ⬆️
unit-tests-20.x 88.98% <ø> (-0.02%) ⬇️
unit-tests-22.x 88.98% <ø> (-0.02%) ⬇️
versioned-tests-18.x 79.27% <ø> (-0.19%) ⬇️
versioned-tests-20.x 79.27% <ø> (-0.19%) ⬇️
versioned-tests-22.x 79.28% <ø> (-0.19%) ⬇️

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev:tests Indicates only changes to tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants