File tree 2 files changed +6
-2
lines changed
Tests/OpenAPIURLSessionTests 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -115,12 +115,16 @@ class MockURLProtocol: URLProtocol {
115
115
116
116
static let recordedHTTPRequests = LockedValueBox < [ URLRequest ] > ( [ ] )
117
117
118
+ /// Determines whether this protocol can handle the given request.
118
119
override class func canInit( with request: URLRequest ) -> Bool { true }
119
120
121
+ /// Returns a canonical version of the given request.
120
122
override class func canonicalRequest( for request: URLRequest ) -> URLRequest { request }
121
123
124
+ /// Stops protocol-specific loading of a request.
122
125
override func stopLoading( ) { }
123
126
127
+ /// Starts protocol-specific loading of a request.
124
128
override func startLoading( ) {
125
129
Self . recordedHTTPRequests. withValue { $0. append ( self . request) }
126
130
guard let url = self . request. url else { return }
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ RUN mkdir -p $HOME/.tools
17
17
RUN echo 'export PATH="$HOME/.tools:$PATH"' >> $HOME/.profile
18
18
19
19
# swift-format
20
- ARG swiftformat_version=508 .0.0
20
+ ARG swiftformat_version=509 .0.0
21
21
RUN git clone --branch $swiftformat_version --depth 1 https://github.com/apple/swift-format $HOME/.tools/swift-format-source
22
22
RUN cd $HOME/.tools/swift-format-source && swift build -c release
23
- RUN ln -s $HOME/.tools/swift-format-source/.build/release/swift-format $HOME/.tools/swift-format
23
+ RUN ln -s $HOME/.tools/swift-format-source/.build/release/swift-format $HOME/.tools/swift-format
You can’t perform that action at this time.
0 commit comments