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

Merge Span.AddLink tests #5115

Merged
merged 10 commits into from May 9, 2024
Merged

Conversation

perhapsmaple
Copy link
Contributor

Fixes #5114
Refactored Span.AddLink tests into a single test

Signed-off-by: perhapsmaple <140232061+perhapsmaple@users.noreply.github.com>
@dmathieu
Copy link
Member

I wonder if TestAddLinksWithMoreAttributesThanLimit could also be added here?

@dmathieu dmathieu added the Skip Changelog PRs that do not require a CHANGELOG.md entry label Mar 29, 2024
Copy link

codecov bot commented Mar 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.5%. Comparing base (a8d4eef) to head (cc2f11d).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##            main   #5115     +/-   ##
=======================================
- Coverage   84.5%   84.5%   -0.1%     
=======================================
  Files        267     267             
  Lines      17563   17563             
=======================================
- Hits       14844   14842      -2     
- Misses      2407    2409      +2     
  Partials     312     312             

see 1 file with indirect coverage changes

Signed-off-by: perhapsmaple <140232061+perhapsmaple@users.noreply.github.com>
@perhapsmaple
Copy link
Contributor Author

Hi @dmathieu, I have added TestAddLinksWithMoreAttributesThanLimit as a subtest. Please let me know if any other changes are required. Thanks

Copy link
Member

@XSAM XSAM left a comment

Choose a reason for hiding this comment

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

The test cases look good but need to be refactored for readability.

sdk/trace/trace_test.go Outdated Show resolved Hide resolved
sdk/trace/trace_test.go Outdated Show resolved Hide resolved
sdk/trace/trace_test.go Outdated Show resolved Hide resolved
sdk/trace/trace_test.go Outdated Show resolved Hide resolved
perhapsmaple and others added 3 commits April 2, 2024 21:05
Co-authored-by: Sam Xie <sam@samxie.me>
Co-authored-by: Sam Xie <sam@samxie.me>
Signed-off-by: perhapsmaple <140232061+perhapsmaple@users.noreply.github.com>
sdk/trace/trace_test.go Outdated Show resolved Hide resolved
Signed-off-by: perhapsmaple <140232061+perhapsmaple@users.noreply.github.com>
@pellared pellared requested a review from XSAM April 4, 2024 08:51
sdk/trace/trace_test.go Outdated Show resolved Hide resolved
perhapsmaple and others added 2 commits April 5, 2024 22:20
Co-authored-by: Sam Xie <sam@samxie.me>
Signed-off-by: perhapsmaple <140232061+perhapsmaple@users.noreply.github.com>
@pellared pellared requested a review from XSAM April 9, 2024 05:53
@pellared pellared merged commit 1430e3f into open-telemetry:main May 9, 2024
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Skip Changelog PRs that do not require a CHANGELOG.md entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Merge both AddLink tests into one with subtests
4 participants