-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix multi enumeration bug #318
fix multi enumeration bug #318
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch. Would you mind adding a unit test for the bug please?
Codecov Report
@@ Coverage Diff @@
## main #318 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 16 16
Lines 1128 1129 +1
=========================================
+ Hits 1128 1129 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
is there a test that passes multiple items ? |
Doesn't look like it, which I guess is why the bug you've found is there. The templating tests are here: https://github.com/justeat/httpclient-interception/blob/cbe05bf80a1a06c8086482c04393bc174b958ac2/tests/HttpClientInterception.Tests/Bundles/BundleExtensionsTests.cs#L168-L241 |
i dont have adequate understanding of this library to produce a test for this bug. but if u have a forward only enumerator (eg from a method that yields), and you have multiple |
So this is a bug you found purely from reading the code, rather than you trying to do something specific with it and it throwing an exception? |
resharper highlighted it as an error |
It's a list of templates, not multiple lists of a template.
No description provided.