justeattakeaway / httpclient-interception

A .NET library for intercepting server-side HTTP requests
https://tech.just-eat.com/2017/10/02/reliably-testing-http-integrations-in-a-dotnet-application/
Apache License 2.0
346 stars 27 forks source link

Support loading bundles from streams #780

Closed martincostello closed 3 months ago

martincostello commented 3 months ago

Add support for loading bundles from streams to support the use case of embedding bundles as resources in an assembly.

I realised this wasn't supported when looking to share some bundle files between two test projects without file copy shenanigans and then realised it wasn't possible to load bundles from anywhere but a file on disk.

codecov[bot] commented 3 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 99.30%. Comparing base (282d533) to head (211e642).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #780 +/- ## ========================================== + Coverage 99.29% 99.30% +0.01% ========================================== Files 15 15 Lines 855 868 +13 Branches 193 198 +5 ========================================== + Hits 849 862 +13 Misses 4 4 Partials 2 2 ``` | [Flag](https://app.codecov.io/gh/justeattakeaway/httpclient-interception/pull/780/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=justeattakeaway) | Coverage Δ | | |---|---|---| | [linux](https://app.codecov.io/gh/justeattakeaway/httpclient-interception/pull/780/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=justeattakeaway) | `99.30% <100.00%> (+0.01%)` | :arrow_up: | | [macos](https://app.codecov.io/gh/justeattakeaway/httpclient-interception/pull/780/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=justeattakeaway) | `99.30% <100.00%> (+0.01%)` | :arrow_up: | | [windows](https://app.codecov.io/gh/justeattakeaway/httpclient-interception/pull/780/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=justeattakeaway) | `99.30% <100.00%> (+0.01%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=justeattakeaway#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.