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

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

perhapsmaple
Copy link

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 83.7%. Comparing base (73ee3bb) to head (5f9b75a).
Report is 11 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@          Coverage Diff          @@
##            main   #5115   +/-   ##
=====================================
  Coverage   83.7%   83.7%           
=====================================
  Files        252     252           
  Lines      16426   16458   +32     
=====================================
+ Hits       13751   13778   +27     
- Misses      2386    2389    +3     
- Partials     289     291    +2     

see 9 files with indirect coverage changes

Signed-off-by: perhapsmaple <140232061+perhapsmaple@users.noreply.github.com>
@perhapsmaple
Copy link
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
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