-
Notifications
You must be signed in to change notification settings - Fork 199
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
chore(unit tests): Adding additional unit tests #3291
Conversation
8d13d0a
to
e7c7943
Compare
Codecov Report
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. @@ Coverage Diff @@
## main #3291 +/- ##
==========================================
+ Coverage 64.49% 66.81% +2.32%
==========================================
Files 1075 1075
Lines 35891 35851 -40
==========================================
+ Hits 23148 23954 +806
+ Misses 12743 11897 -846
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 30 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
AmplifyPlugins/Storage/Sources/AWSS3StoragePlugin/Support/Internal/StorageTransferTask.swift
Show resolved
Hide resolved
AmplifyPlugins/Auth/Sources/AWSCognitoAuthPlugin/Models/AWSAuthCognitoSession.swift
Show resolved
Hide resolved
AmplifyPlugins/Storage/Tests/AWSS3StoragePluginTests/Dependency/AWSS3AdapterTests.swift
Show resolved
Hide resolved
...gnitoAuthPluginUnitTests/ActionTests/CredentialStore/MigrateLegacyCredentialStoreTests.swift
Outdated
Show resolved
Hide resolved
...nUnitTests/ActionTests/FetchAuthSession/FetchUserPoolTokens/RefreshHostedUITokensTests.swift
Outdated
Show resolved
Hide resolved
...nUnitTests/ActionTests/FetchAuthSession/FetchUserPoolTokens/RefreshHostedUITokensTests.swift
Outdated
Show resolved
Hide resolved
...ugins/Auth/Tests/AWSCognitoAuthPluginUnitTests/CognitoASFTests/CognitoUserPoolASFTests.swift
Outdated
Show resolved
Hide resolved
e7c7943
to
b2ccaf8
Compare
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.
LGTM, minor comments
import XCTest | ||
|
||
class CognitoUserPoolASFTests: XCTestCase { | ||
private var pool: CognitoUserPoolASF! |
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.
nit: rename to userPool
?
// | ||
|
||
@testable import Amplify | ||
//@testable import func AmplifyTestCommon.XCTAssertThrowFatalError |
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.
can remove the comment if not needed
bae48a2
to
bcec936
Compare
Description
This PR adds additional unit tests to the following targets:
It also removes some orphaned code found around :)
General Checklist
Given When Then
inline code documentation and are named accordinglytestThing_condition_expectation()
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.