-
Notifications
You must be signed in to change notification settings - Fork 16
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
Feature/refactor #6
Conversation
Example/Tests/Tests.swift
Outdated
@@ -82,8 +85,17 @@ class Tests: XCTestCase, SucculentTest { | |||
} | |||
} | |||
|
|||
func testIgnoredParametersForTrace() { | |||
// This tests a recording that was made without the ignoredParams that we’re going to run the replay with. So the recording contains query strings with the ignored param. We ensure that we can still match those requests. |
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.
This should be a ///
comment above the function declaration.
|
||
public convenience init(traceUrl: URL, baseUrl: URL? = nil, ignoreVersioningRequests: [String] = []) { | ||
self.init() | ||
public convenience init(replayFrom traceUrl: URL?, passThroughBaseUrl baseUrl: URL? = nil, configuration: Configuration? = nil) { |
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.
Documentation:
Initialise Succulent in replay mode, with an optional trace file to replay from, a pass-through URL to use if a match if not found in the trace file, and configuration.
} | ||
|
||
public convenience init(recordUrl: URL, baseUrl: URL) { | ||
self.init() | ||
public convenience init(recordTo recordUrl: URL, baseUrl: URL, configuration: Configuration? = nil) { |
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.
Documentation:
Initialise Succulent in recording mode, with a URL to record the trace to and the base URL for the upstream server that we're recording.
No description provided.