Skip to content

Commit

Permalink
Fix tests & coverage report?
Browse files Browse the repository at this point in the history
  • Loading branch information
ApolloZhu committed Nov 5, 2020
1 parent b8e452f commit 21c47f0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/spm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ jobs:
run: swift test -v --enable-code-coverage
- name: Codecov
uses: codecov/codecov-action@v1
with:
file: .build/x86_64-apple-macosx/debug/codecov/swift_qrcodejs.json

linux:
runs-on: ubuntu-latest
Expand Down
6 changes: 3 additions & 3 deletions Sources/QRCodeError.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ public enum QRCodeError: Error {
case dataLengthExceedsCapacityLimit
/// Can not encode the given string using the specified encoding.
case text(String, incompatibleWithEncoding: String.Encoding)
/// Fill a new issue on GitHub with swift_qrcodejs, or submit a pull request.
/// Fill a new issue on GitHub, or submit a pull request.
case internalError(ImplmentationError)

/// Should probably contact developer is you ever see any of these.
public enum ImplmentationError {
/// swift_qrcodejs fail to determine how large is the data.
/// fail to determine how large is the data.
case dataLengthIndeterminable
/// swift_qrcodejs fail to find appropriate container for your data.
/// fail to find appropriate container for your data.
case dataLength(Int, exceedsCapacityLimit: Int)
}
}
2 changes: 1 addition & 1 deletion Tests/QRCodeSwiftTests/QRCodeSwiftTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ private func randomStringOfUTF8Length(_ length: Int) -> String {
return str
}

class swift_qrcodejsTests: XCTestCase {
class QRCodeSwiftTests: XCTestCase {
func testSimple() throws {
try expect(QRCode("https://gist.github.com/agentgt/1700331"),
withFill: "##", andPatch: " ",
Expand Down

0 comments on commit 21c47f0

Please sign in to comment.