Skip to content

test: Increased tests of otlp common#2159

Merged
mwear merged 8 commits into
open-telemetry:mainfrom
thompson-tomo:increased_tests
Jun 26, 2026
Merged

test: Increased tests of otlp common#2159
mwear merged 8 commits into
open-telemetry:mainfrom
thompson-tomo:increased_tests

Conversation

@thompson-tomo

@thompson-tomo thompson-tomo commented May 22, 2026

Copy link
Copy Markdown
Contributor

Introduced new tests to improve coverage. Has been split out of #2075 to decouple changes.

Code coverage prior to change:

Line Coverage: 98.31% (116 / 118)

After change:

Coverage report generated for Unit Tests to /home/runner/work/opentelemetry-ruby/opentelemetry-ruby/exporter/otlp-common/coverage. 118 / 118 LOC (100.0%) covered.

end
end

describe 'private methods' do

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

In general, I would prefer private methods be tested indirectly via the public API. This allows us to make internal refactors without having the changes cascade into tests. It's not a hard rule, and there are sometimes reasonable exceptions, but I'm wondering if these are necessary?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I also agree. Note this pr is purely a split of #2075 to decouple feature from additional test cases

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@thompson-tomo do you plan to update?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I actually haven't written anything, this is just a split of @arjun-rajappa work.

I can however reduce the scope in this pr.

@thompson-tomo thompson-tomo requested review from a team as code owners June 23, 2026 16:55
@mwear mwear merged commit ebadae9 into open-telemetry:main Jun 26, 2026
63 checks passed
@thompson-tomo thompson-tomo deleted the increased_tests branch June 27, 2026 01:31
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.

4 participants