Add tests to improve Rust code path coverage#41
Merged
Conversation
Agent-Logs-Url: https://github.com/taskiq-python/natsrpy/sessions/0a995e8c-b582-460a-905b-8e41485c74e8 Co-authored-by: s3rius <18153319+s3rius@users.noreply.github.com>
Agent-Logs-Url: https://github.com/taskiq-python/natsrpy/sessions/0a995e8c-b582-460a-905b-8e41485c74e8 Co-authored-by: s3rius <18153319+s3rius@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
s3rius
March 27, 2026 02:39
View session
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #41 +/- ##
==========================================
+ Coverage 82.87% 87.78% +4.91%
==========================================
Files 30 30
Lines 3013 3013
==========================================
+ Hits 2497 2645 +148
+ Misses 516 368 -148 ☔ View full report in Codecov by Sentry. |
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.
Generated
cargo llvm-covreport and added 41 tests across 8 files targeting meaningful uncovered Rust code paths (excluding__repr__/__str__).Coverage improvements (Rust lines)
js/managers/consumers.rssubscriptions/callback.rsjs/managers/kv.rsjs/message.rsjs/stream.rsNew test files
test_callback_subscription.py—CallbackSubscription.unsubscribe(),.unsubscribe(limit=),.drain()test_consumers_manager.py—ConsumersManager.delete(),.get_push(),.update()(pull/push),.pause(),.resume()test_js_message_acks.py— Double ack variants,nack(delay=),.next(),.progress(double=True),.term(double=True), message nullable propertiestest_stream_purge.py—Stream.purge(sequence=),Stream.purge(keep=)test_kv_manager.py—KVManager.update()test_stream_config_types.py—External,Source,Placement,ConsumerLimitsconstructors and propertiestest_publication_and_extras.py—Publicationproperties, queue group subscriptions,bytearray/memoryviewpayloadstest_consumer_properties.py—PullConsumer/PushConsumer.name/.stream_name, empty fetchAlso adds
*.profrawto.gitignore.