-
Notifications
You must be signed in to change notification settings - Fork 311
test: Add tests for under 40 percent coverage #1078
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
Conversation
Co-authored-by: Github Copilot <[email protected]>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #1078 +/- ##
===========================================
+ Coverage 74.88% 78.04% +3.16%
===========================================
Files 159 159
Lines 15801 15811 +10
===========================================
+ Hits 11832 12340 +508
+ Misses 3558 3058 -500
- Partials 411 413 +2 see 11 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
Co-authored-by: Github Copilot <[email protected]>
Co-authored-by: Github Copilot <[email protected]>
Co-authored-by: Github Copilot <[email protected]>
v3/go.mod
Outdated
@@ -3,6 +3,7 @@ module github.com/newrelic/go-agent/v3 | |||
go 1.22 | |||
|
|||
require ( | |||
github.com/stretchr/testify v1.10.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should avoid requiring testing dependencies at the top level mod file. It looks like this is only used in the serverless_from_internal_test
and could easily be replaced
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed this and updated the test that was using it
v3/newrelic/internal_app_test.go
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please take a look at TestProcess
function
Failures due to a new version of Go being released and 1.23 is too old. Upgrading will need to be done in a separate PR. https://new-relic.atlassian.net/browse/NR-451839 |
* test: Add tests and fix issues found with tests Co-authored-by: Github Copilot <[email protected]> * Test: Add missed case Co-authored-by: Github Copilot <[email protected]> * Fix: Remove unneeded if and fix test Co-authored-by: Github Copilot <[email protected]> --------- Co-authored-by: Github Copilot <[email protected]>
* test: Add tests and fix issues found with tests Co-authored-by: Github Copilot <[email protected]> * Chore: Cleanup and simplify Co-authored-by: Github Copilot <[email protected]> * chore: Naming fix * test: Check reset with new duration Co-authored-by: Github Copilot <[email protected]> * test: Fix test to precisely count ticks Co-authored-by: Github Copilot <[email protected]> --------- Co-authored-by: Github Copilot <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
already reviewed and merged into develop
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
already reviewed and merged into develop
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
already reviewed and merged into develop
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
already reviewed and merged into develop
Replaced by #1082 |
Links
https://new-relic.atlassian.net/browse/NR-320174
https://new-relic.atlassian.net/browse/NR-448319
Details
Adding tests to cover code in
newrelic
folder that are less than 40%