transport: add missing tests for http2_client
Fix for: https://github.com/grpc/grpc-go/issues/2248
RELEASE NOTES: None
The committers listed above are authorized under a signed CLA.
- :white_check_mark: login: hanut19 (52b87e0a727afeb01007b1f30a012bb7ebe97983, a1709988878c3de371b21dcd52a5ba41d5facbf0, 73f07136b51b58000463aaf458aed4f0de3e4112, cbb5e48d88e323c1a82228dbea0325a493d5e2e2, b2c5b17461dfb8aba07bd3d93aec8c920d5748c7, a238114e63cf5ee9c4d606ed286c48794448b319, 1ce329baa600c2f1578d1efe917b473b1e4b6429, a3cae7f9624ab687177276ca1bc6a6cca13b0b16, ff7775c49a40012fed124c7841660ef9bc83b625, a5840e7b4336e6beec99e4c8b3596fa448683c28, 6da45fe1ce975b8c42b93918ae8268c26328b408, 4b359674573313b0b3d2ebeaa621683a671eca1b, 9c6b4ef7b234c10363774223daf2948f5b291a49, c78509c06e81bce183ecdbb8328dc477f9a09d98, e29fb42102c864b2757474954e47e4409eba1b10, a639be843d1c21e446f3435e723511b7930c6011, f122c9735a67272acd84c78ba473165e169cd83b, 3b80f789fe61269b5614cd97beee7cb52b6c0873, 3d812711784f9051068ac657f4747af1753487ba)
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 81.92%. Comparing base (
00514a7) to head (52b87e0).
Additional details and impacted files
@@ Coverage Diff @@
## master #7462 +/- ##
==========================================
+ Coverage 81.73% 81.92% +0.19%
==========================================
Files 361 361
Lines 27809 27809
==========================================
+ Hits 22730 22783 +53
+ Misses 3869 3837 -32
+ Partials 1210 1189 -21
Please modify the test cases mock conn’s to throw error only in case of test condition being true like client preface
@purnesh42H comment added. please check
@arvindbr8 adding you for one more review. Thanks!
We should reassess this PR by looking at the coverage report for the file here: https://app.codecov.io/gh/grpc/grpc-go/blob/master/internal%2Ftransport%2Fhttp2_client.go
Closing this PR as we need to revisit the approach