Skip to content
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

Merged
merged 11 commits into from
Oct 10, 2018
Merged

Feature/refactor #6

merged 11 commits into from
Oct 10, 2018

Conversation

tokuora
Copy link
Contributor

@tokuora tokuora commented Oct 10, 2018

No description provided.

Succulent/Classes/Succulent.swift Outdated Show resolved Hide resolved
Example/Tests/Tests.swift Show resolved Hide resolved
Succulent/Classes/Succulent.swift Outdated Show resolved Hide resolved
Succulent/Classes/Succulent.swift Outdated Show resolved Hide resolved
@@ -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.
Copy link
Member

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) {
Copy link
Member

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) {
Copy link
Member

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.

@karlvr karlvr merged commit a317579 into develop Oct 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants