Add unit tests for MarshalerInputStream - #8784
Open
Vicky677 wants to merge 1 commit into
Open
Conversation
|
|
Vicky677
marked this pull request as draft
September 9, 2026 15:50
Vicky677
force-pushed
the
grpc-unit-test-add
branch
from
September 12, 2026 10:21
38251b8 to
b86c53a
Compare
Vicky677
force-pushed
the
grpc-unit-test-add
branch
from
September 12, 2026 10:21
b86c53a to
42d5362
Compare
Pull request dashboard statusWaiting on reviewers · refreshed 2026-09-12 10:50 UTC Review the latest changes. Status above doesn't look right?
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #8784 +/- ##
============================================
+ Coverage 91.30% 91.37% +0.07%
- Complexity 10506 10537 +31
============================================
Files 1007 1008 +1
Lines 28373 28465 +92
Branches 3586 3617 +31
============================================
+ Hits 25907 26011 +104
+ Misses 1673 1658 -15
- Partials 793 796 +3 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Vicky677
marked this pull request as ready for review
September 12, 2026 10:50
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds comprehensive unit test coverage for
io.opentelemetry.exporter.internal.grpc.MarshalerInputStreaminopentelemetry-exporter-common.Test scenarios covered:
available():MessageWriter.ByteArrayInputStream.0after the stream has been fully drained.drainTo(OutputStream):MessageWriter.0written bytes when called on an already drained stream.read()(single byte):-1) from aMessageWriter.-1on already drained stream.read(byte[], int, int)(bulk read):MessageWriterand verifying EOF on subsequent read.0-length messages properly.-1on already drained stream.