-
Notifications
You must be signed in to change notification settings - Fork 12
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
Version 0.6.0 #10
Version 0.6.0 #10
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #10 +/- ##
==========================================
+ Coverage 0.00% 94.36% +94.36%
==========================================
Files 11 33 +22
Lines 517 1012 +495
==========================================
+ Hits 0 955 +955
+ Misses 517 57 -460
|
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.
It's not particularly easy to review this due to the size of the PR, but it mostly looks good to me besides the @testable
stuff
Tests/OrdersTests/OrdersTests.swift
Outdated
@testable import Orders | ||
@testable import PassKit |
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.
Is it possible to remove @testable
here and just test the public API? Are there any internals that need to be tested and if so might it make sense to move them to a separate file? cc @0xTim
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.
I need to create and encode some package
DTOs (defined in the PassKit target, as they are shared) to test Passes and Orders API endpoints
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.
Well if they're package
they should be accessible in the tests too right?
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.
Ok, I added the PassKit
target to the dependencies of the test target (previously it was only a dependency of the main Passes
and Orders
targets) and now it doesn't require @testable
.
For Passes
and Orders
I wouldn't remove the @testable
attribute because there are some internal
s that can be tested
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.
Ignore my comments about OpenSSL - I see we still need it. I'm assuming we have an issue open on Swift Crypto for this?
A few comments/suggestions - nothing blocking though
Cory Benfield told me on Slack that encrypted PEM keys aren't supported because they use old encryption schemes (I assume DES) that they don't plan to support in Swift Crypto |
I made all the requested changes and received another approval
PKPass
schema toPass
openssl
toswift-certificates
for unencrypted private keysvapor-community/Zip
for bundle compression