-
Notifications
You must be signed in to change notification settings - Fork 2
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
feat(server): match the most specific httprequest 💎 #116
base: develop
Are you sure you want to change the base?
Conversation
Here is an overview of what got changed by this pull request: Issues
======
- Added 2
Complexity increasing per file
==============================
- src/NinjaTools.FluentMockServer.API/Infrastructure/RequestRepository.cs 1
- src/NinjaTools.FluentMockServer.API/Models/Cookies.cs 1
- src/NinjaTools.FluentMockServer.API/Models/RequestMatcher.cs 7
- src/NinjaTools.FluentMockServer.API/Infrastructure/ISetupRepository.cs 1
- src/NinjaTools.FluentMockServer.API/Models/HttpResponse.cs 4
- src/NinjaTools.FluentMockServer.API/Models/Setup.cs 3
- src/NinjaTools.FluentMockServer.API/Proxy/Visitors/RequestMatcherEvaluationVisitor.cs 10
- src/NinjaTools.FluentMockServer.API/Models/Query.cs 2
- src/NinjaTools.FluentMockServer.API/Models/RequestBodyMatcher.cs 2
- src/NinjaTools.FluentMockServer.API/Models/Headers.cs 2
- src/NinjaTools.FluentMockServer.API/Infrastructure/SetupRepository.cs 1
- src/NinjaTools.FluentMockServer.API/Models/Method.cs 2
- src/NinjaTools.FluentMockServer.API/Models/ResponseAction.cs 2
- test/NinjaTools.FluentMockServer.API.Tests/Infrastructure/SetupRepositoryTests.cs 3
- src/NinjaTools.FluentMockServer.API/Models/Path.cs 2
Complexity decreasing per file
==============================
+ src/NinjaTools.FluentMockServer.API/Proxy/Visitors/IVisitor.cs -1
Clones added
============
- src/NinjaTools.FluentMockServer.API/Models/Cookies.cs 2
- src/NinjaTools.FluentMockServer.API/Models/RequestMatcher.cs 2
- src/NinjaTools.FluentMockServer.API/Models/HttpResponse.cs 1
- src/NinjaTools.FluentMockServer.API/Models/Setup.cs 3
- src/NinjaTools.FluentMockServer.API/Models/Query.cs 2
- src/NinjaTools.FluentMockServer.API/Models/RequestBodyMatcher.cs 2
- src/NinjaTools.FluentMockServer.API/Models/Headers.cs 2
- src/NinjaTools.FluentMockServer.API/Models/Method.cs 2
- src/NinjaTools.FluentMockServer.API/Models/ResponseAction.cs 2
- src/NinjaTools.FluentMockServer.API/Models/Path.cs 2
Clones removed
==============
+ test/NinjaTools.FluentMockServer.API.Tests/Proxy/ComparasionVisitorTests.cs -2
See the complete overview on Codacy |
HttpRequest.Body.Seek(0, SeekOrigin.Begin); | ||
using var reader = new StreamReader(HttpRequest.Body); | ||
var httpBody = reader.ReadToEnd(); | ||
Guard.Against.NullOrEmpty(visitable.Cookie, nameof(visitable) + nameof(Cookies)); |
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.
Issue found: 'visitable' is null on at least one execution path.
public sealed class ComparasionVisitor : IVisitor, | ||
IVisitor<RequestMatcher>, | ||
[DebuggerDisplay("{" + nameof(DebuggerDisplay) + "}")] | ||
public sealed class RequestMatcherEvaluationVisitor : |
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.
Kudos, SonarCloud Quality Gate passed! 0 Bugs |
No description provided.