Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Perform validation on stubbed responses #1593
This adds the ability to validate a stubbed response.
Something to consider:
We have a unit test for this where we use the
You can see the two initializers below:
// HTTPURLResponse initializer public init?(url: URL, statusCode: Int, httpVersion HTTPVersion: String?, headerFields: [String: String]?) // URLResponse initializer public init(url: URL, mimeType MIMEType: String?, expectedContentLength length: Int, textEncodingName name: String?)
This change would require that you use the
Looking for thoughts from @Moya/contributors
@@ Coverage Diff @@ ## master #1593 +/- ## ======================================= Coverage 87.82% 87.82% ======================================= Files 5 5 Lines 156 156 ======================================= Hits 137 137 Misses 19 19
sunshinejr left a comment
Few comments in this one, thanks a lot for covering stubs Steven!
Apart from that we would need a Changelog entry (probably a