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

[chore] [pdata] Add test coverage for slices Sort method #7115

Merged
merged 1 commit into from
Feb 4, 2023

Conversation

dmitryax
Copy link
Member

@dmitryax dmitryax commented Feb 3, 2023

No description provided.

@dmitryax dmitryax requested a review from a team as a code owner February 3, 2023 20:16
@codecov
Copy link

codecov bot commented Feb 3, 2023

Codecov Report

Base: 90.59% // Head: 90.82% // Increases project coverage by +0.22% 🎉

Coverage data is based on head (4b7cbc6) compared to base (16c851d).
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7115      +/-   ##
==========================================
+ Coverage   90.59%   90.82%   +0.22%     
==========================================
  Files         293      293              
  Lines       14254    14254              
==========================================
+ Hits        12914    12946      +32     
+ Misses       1072     1040      -32     
  Partials      268      268              
Impacted Files Coverage Δ
pdata/ptrace/generated_spanslice.go 100.00% <0.00%> (+3.44%) ⬆️
pdata/plog/generated_logrecordslice.go 100.00% <0.00%> (+3.44%) ⬆️
pdata/plog/generated_scopelogsslice.go 100.00% <0.00%> (+3.44%) ⬆️
pdata/pmetric/generated_metricslice.go 100.00% <0.00%> (+3.44%) ⬆️
pdata/ptrace/generated_spanlinkslice.go 100.00% <0.00%> (+3.44%) ⬆️
pdata/ptrace/generated_spaneventslice.go 100.00% <0.00%> (+3.44%) ⬆️
pdata/plog/generated_resourcelogsslice.go 100.00% <0.00%> (+3.44%) ⬆️
pdata/ptrace/generated_scopespansslice.go 100.00% <0.00%> (+3.44%) ⬆️
pdata/pmetric/generated_scopemetricsslice.go 100.00% <0.00%> (+3.44%) ⬆️
pdata/ptrace/generated_resourcespansslice.go 100.00% <0.00%> (+3.44%) ⬆️
... and 6 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@dmitryax dmitryax force-pushed the pdata-cover-sort branch 3 times, most recently from df9317e to a811629 Compare February 4, 2023 01:48
return uintptr(unsafe.Pointer(a.orig)) < uintptr(unsafe.Pointer(b.orig))
})
for i := 1; i < es.Len(); i++ {
assert.True(t, uintptr(unsafe.Pointer(es.At(i-1).orig)) < uintptr(unsafe.Pointer(es.At(i).orig)))
Copy link
Member

Choose a reason for hiding this comment

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

assert.Less?

Copy link
Member Author

Choose a reason for hiding this comment

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

Surprisingly assert.Less doesn't support uintptr

Copy link
Member

Choose a reason for hiding this comment

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

Trying to fix that :) stretchr/testify#1339

Copy link
Member

Choose a reason for hiding this comment

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

Maybe add a TODO to change this if the PR gets merged.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done

@dmitryax dmitryax merged commit 0f6a174 into open-telemetry:main Feb 4, 2023
@dmitryax dmitryax deleted the pdata-cover-sort branch February 5, 2023 18:10
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.

None yet

2 participants