Matt Rubin
42964a4aea
Fix SwiftLint violations
2024-08-18 15:05:21 -04:00
Matt Rubin
13231d4b45
Remove unused invalid token fallbacks in token deserialization tests
2022-12-28 21:41:19 -05:00
Matt Rubin
0d1d61a06f
Convert token serialization "brute force" tests to Swift
2022-12-28 21:12:34 -05:00
Matt Rubin
d4b8b7a4fc
Convert more legacy Token serialization tests to Swift
2022-12-28 21:12:34 -05:00
Matt Rubin
4e4915af10
Convert some legacy Token serialization tests to Swift
2022-12-28 21:12:34 -05:00
Matt Rubin
c79a6a16f8
Tweak XCTAssertThrowsError handler closures
2022-12-28 13:17:31 -05:00
Matt Rubin
fb7a259e04
Simplify handling of errors thrown in TokenSerializationTests
...
This change will cause `testSerialization` to return on the first thrown error, instead of continuing to try every combination of token parameters.
2022-12-28 13:07:35 -05:00
Matt Rubin
160d90d118
Merge develop into throwing-initializers
2022-12-28 12:30:18 -05:00
Matt Rubin
4c276c1b2a
Delete a stray swiftlint:enable comment
2022-12-23 01:47:14 -05:00
Matt Rubin
923e0bb5f2
Disable a large_tuple warning in GeneratorTests.swift
2022-12-23 01:47:14 -05:00
Matt Rubin
5289388f48
[Lint] Clean up identifier names in the tests
2019-04-27 17:06:03 -04:00
Matt Rubin
d457189307
Update license copyright dates
2019-04-27 12:06:21 -04:00
Matt Rubin
1fa793569c
Merge develop into throwing-initializers
2019-04-27 01:40:04 -04:00
Matt Rubin
9d49e1563d
[Lint] Re-enable comma linting, with selective disabling
2018-09-14 17:16:50 -04:00
Matt Rubin
97736ff83a
[Lint] Clean up whitespace around colons
2018-09-14 16:55:17 -04:00
Matt Rubin
c14a295bd1
Add comments and fix tests
2018-04-29 10:58:55 -04:00
Matt Rubin
a722b66a57
Remove the cross-module Generator initializer, and fix invalid tests
...
Cross-module struct initializers which set properties directly are deprecated in Swift 4.1, and will be an error in Swift 5.
The fact that a custom initializer was needed to construct the invalid Generators used by the test is indicative of a design flaw in the tests. If creating an invalid Generator with the library's default API is not possible, then testing such impossible-to-create invalid Generators is unnecessary. It is enough to test that attempts to create these invalid generators will fail.
2018-04-21 17:27:05 -04:00
Matt Rubin
bbfe6c9f60
Remove a SwiftLint disable comment that is no longer needed
...
The underlying bug causing the false positive has been fixed in Swift 4.1
2018-03-31 22:12:46 -04:00
Matt Rubin
5a3c36a857
Delete bad tokens from the keychain to prevent breaking future test runs
2018-03-17 13:30:10 -04:00
Matt Rubin
b7c419d6cd
Remove debug logging in keychain tests
2018-03-17 13:21:40 -04:00
Matt Rubin
d58b404f4e
Add tests for the failure cases of Keychain's init(keychainDictionary:)
2018-03-15 14:55:45 -04:00
Matt Rubin
87ce331786
Use XCTAssertThrowsError where possible in Generator tests
2018-03-15 12:33:46 -04:00
Matt Rubin
998e084e48
Remove unnecessary throws from a test function declaration
2018-03-10 00:25:57 -05:00
Matt Rubin
9a393464e2
Replace Token's failable initializer with a throwing initializer
2018-03-10 00:25:31 -05:00
Matt Rubin
cb1714c565
Let XCTest catch Generator initialization failures in tests
2018-03-10 00:17:25 -05:00
Matt Rubin
48a76260d9
Replace Generator's failable initializer with a throwing initializer
2018-03-10 00:02:40 -05:00
Matt Rubin
e2f3a06c64
Re-enable Swiftlint's function_body_length rule
...
Add targeted exceptions for two long test functions.
2018-03-08 16:44:20 -05:00
Matt Rubin
32bd750464
Enable SwiftLint's vertical_parameter_alignment_on_call rule
...
Add a comment and temporarily disable the rule in one spot to prevent a false positive.
2018-03-08 16:31:04 -05:00
Matt Rubin
529b8f08f4
Re-enable syntactic_sugar lint warnings
2017-12-22 08:45:23 -05:00
Matt Rubin
f518450892
Improve test coverage by testing URL parsing edge cases
2017-10-09 23:09:57 -04:00
Matt Rubin
a872b54634
Include error messages in all calls to XCTFail()
2017-09-25 22:37:31 -04:00
Matt Rubin
9ec8300844
Simplify string comparison in serialization tests
2017-09-21 12:29:32 -04:00
Matt Rubin
3955b1638a
Update to Swift 4
2017-09-20 17:27:53 -04:00
Matt Rubin
1951e079ff
Update the copyright dates of files modified in 2017
2017-02-05 23:49:22 -05:00
Matt Rubin
19e0aad792
Simplify iteration in generator tests
2017-02-04 21:36:13 -05:00
Matt Rubin
4c190be616
Convert Generator.password(at:) to take a Date instead of a TimeInterval
2017-02-04 21:28:39 -05:00
Matt Rubin
38c9ae0dcd
Convert Algorithm case names to lowercase, following Swift 3 conventions
2017-02-04 20:56:02 -05:00
Matt Rubin
609016a547
Use the Base32 API directly to avoid creating and then bridging NSData
2017-02-04 20:46:47 -05:00
Matt Rubin
89fa4738e3
Limit line length to 120 characters
2016-12-29 10:52:12 -05:00
Matt Rubin
87551a50a0
Merge swift-2.3 into swift-3
2016-12-29 00:53:29 -05:00
Matt Rubin
19ecef3def
Wrap long collection literals onto multiple lines with trailing commas
2016-12-28 12:49:31 -05:00
Matt Rubin
6260e7b0ac
Merge origin/develop into swiftlint
2016-12-27 20:37:26 -05:00
Matt Rubin
8cf2355f60
Move conditional returns onto new lines
2016-12-27 15:48:02 -05:00
Matt Rubin
cef7b41be3
Add newlines to switch case statements
2016-12-24 00:44:17 -05:00
Matt Rubin
8d0210ea41
Downgrade the launch screen storyboard to an Xcode 7.x-compatible format
2016-12-15 14:44:37 -05:00
Matt Rubin
821ac72582
Add an empty app to serve as a test host for the keychain tests
...
As of iOS 10, keychain access from framework test bundles is broken in the simulator, returning error -34018 for every request.
By using an (empty) iOS app as a bundle loader, the test gains the app's access to the keychain and can run successfully.
2016-12-14 20:18:17 -05:00
Matt Rubin
be580f2f13
Merge swift-2.3 into swift-3
2016-11-19 16:12:11 -05:00
Matt Rubin
5ce9a8ffbb
Bump the copyright year in KeychainTests.swift
2016-11-16 17:01:45 -05:00
Matt Rubin
fa65b0d702
Merge swift-3 into swift-3-api-style
2016-11-15 23:54:13 -05:00
Matt Rubin
32ae1d8fb7
Update the new tests to Swift 3
2016-11-15 23:15:28 -05:00