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

Swift3.1 linux #37

Merged
merged 15 commits into from
Apr 6, 2017
Merged

Swift3.1 linux #37

merged 15 commits into from
Apr 6, 2017

Conversation

lightsprint09
Copy link
Member

@lightsprint09 lightsprint09 commented Apr 3, 2017

  • Fixes Swift 3.1 warnings
  • Upgrades Swift Lint to 0.17
  • compiles now on linux. Tests need to be updated for linux - see Testing on Linux #38

@codecov
Copy link

codecov bot commented Apr 3, 2017

Codecov Report

Merging #37 into develop will decrease coverage by 3.5%.
The diff coverage is 0%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop      #37      +/-   ##
===========================================
- Coverage    87.34%   83.83%   -3.51%     
===========================================
  Files           37       20      -17     
  Lines         1027      297     -730     
===========================================
- Hits           897      249     -648     
+ Misses         130       48      -82
Impacted Files Coverage Δ
Source/ModifyRequestNetworkService.swift 100% <ø> (ø) ⬆️
Source/NetworkService.swift 100% <ø> (ø) ⬆️
Source/NetworkTaskMock.swift 77.77% <0%> (ø) ⬆️
Source/DBNetworkStackError.swift 78.04% <0%> (-6.17%) ⬇️
Source/URLSessionNetworkAccess.swift 40% <0%> (-13.34%) ⬇️
...orkStackTests/NetworkResponseProcessingTests.swift
Tests/DBNetworkStackTests/ResourceTest.swift
Tests/DBNetworkStackTests/TrainModel.swift
Tests/DBNetworkStackTests/BaseURLKeyTest.swift
Tests/DBNetworkStackTests/NetworkServiceTest.swift
... and 6 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a2ecf13...7bbd2e5. Read the comment docs.

@@ -89,7 +89,7 @@ extension DBNetworkStackError : CustomDebugStringConvertible {
case .requestError(let error):
return "Request error: \(error)"
case .serverError(let response, let data):
return "Server error: \(response), response: ".appendingContentsOf(data: data)
return "Server error: \(String(describing: response)), response: ".appendingContentsOf(data: data)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

String describing returns optional type description like "optional("response text")"..

@@ -34,7 +34,7 @@ extension URLSession: URLSessionProtocol {}

extension URLSessionDataTask: NetworkTaskRepresenting {
public var progress: Progress {
let totalBytesExpected = response?.expectedContentLength ?? NSURLSessionTransferSizeUnknown
let totalBytesExpected = response?.expectedContentLength ?? -1
Copy link
Member

@dennispost dennispost Apr 4, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we use of NSURLSessionTransferSizeUnknown instead?

@lightsprint09 lightsprint09 merged commit 51161bd into develop Apr 6, 2017
@lightsprint09 lightsprint09 deleted the swift3.1-linux branch April 6, 2017 07:05
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.

2 participants