Skip to content

test: Increased tests of otlp common#2159

Open
thompson-tomo wants to merge 9 commits into
open-telemetry:mainfrom
thompson-tomo:increased_tests
Open

test: Increased tests of otlp common#2159
thompson-tomo wants to merge 9 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.

arjun-rajappa and others added 2 commits April 6, 2026 20:15
Signed-off-by: Arjun Rajappa <arjun.rajappa@ibm.com>
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.

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