rabbitmq / rabbitmq-stream-rust-client

A client library for RabbitMQ streams
Other
156 stars 15 forks source link

Test error conditions #175

Closed Gsantomaggio closed 1 year ago

Gsantomaggio commented 1 year ago

Add more tests for error conditions.

Fixes https://github.com/rabbitmq/rabbitmq-stream-rust-client/issues/176

codecov[bot] commented 1 year ago

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.46 :tada:

Comparison is base (6b50429) 87.35% compared to head (233c93d) 87.81%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #175 +/- ## ========================================== + Coverage 87.35% 87.81% +0.46% ========================================== Files 68 68 Lines 5505 5516 +11 ========================================== + Hits 4809 4844 +35 + Misses 696 672 -24 ``` | [Impacted Files](https://app.codecov.io/gh/rabbitmq/rabbitmq-stream-rust-client/pull/175?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=rabbitmq) | Coverage Δ | | |---|---|---| | [protocol/src/response/mod.rs](https://app.codecov.io/gh/rabbitmq/rabbitmq-stream-rust-client/pull/175?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=rabbitmq#diff-cHJvdG9jb2wvc3JjL3Jlc3BvbnNlL21vZC5ycw==) | `96.80% <ø> (ø)` | | | [protocol/src/commands/query\_offset.rs](https://app.codecov.io/gh/rabbitmq/rabbitmq-stream-rust-client/pull/175?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=rabbitmq#diff-cHJvdG9jb2wvc3JjL2NvbW1hbmRzL3F1ZXJ5X29mZnNldC5ycw==) | `87.25% <100.00%> (+0.79%)` | :arrow_up: | | [protocol/src/response/shims.rs](https://app.codecov.io/gh/rabbitmq/rabbitmq-stream-rust-client/pull/175?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=rabbitmq#diff-cHJvdG9jb2wvc3JjL3Jlc3BvbnNlL3NoaW1zLnJz) | `97.77% <100.00%> (+4.75%)` | :arrow_up: | | [src/client/mod.rs](https://app.codecov.io/gh/rabbitmq/rabbitmq-stream-rust-client/pull/175?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=rabbitmq#diff-c3JjL2NsaWVudC9tb2QucnM=) | `91.96% <100.00%> (+0.29%)` | :arrow_up: | ... and [4 files with indirect coverage changes](https://app.codecov.io/gh/rabbitmq/rabbitmq-stream-rust-client/pull/175/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=rabbitmq)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.