mirror of
https://github.com/realm/SwiftLint.git
synced 2026-06-06 20:18:40 +00:00
Add tests
This commit is contained in:
@@ -891,6 +891,12 @@ extension QuickDiscouragedPendingTestRuleTests {
|
||||
]
|
||||
}
|
||||
|
||||
extension RandomRuleTests {
|
||||
static var allTests: [(String, (RandomRuleTests) -> () throws -> Void)] = [
|
||||
("testWithDefaultConfiguration", testWithDefaultConfiguration)
|
||||
]
|
||||
}
|
||||
|
||||
extension RedundantDiscardableLetRuleTests {
|
||||
static var allTests: [(String, (RedundantDiscardableLetRuleTests) -> () throws -> Void)] = [
|
||||
("testWithDefaultConfiguration", testWithDefaultConfiguration)
|
||||
@@ -1401,6 +1407,7 @@ XCTMain([
|
||||
testCase(QuickDiscouragedCallRuleTests.allTests),
|
||||
testCase(QuickDiscouragedFocusedTestRuleTests.allTests),
|
||||
testCase(QuickDiscouragedPendingTestRuleTests.allTests),
|
||||
testCase(RandomRuleTests.allTests),
|
||||
testCase(RedundantDiscardableLetRuleTests.allTests),
|
||||
testCase(RedundantNilCoalescingRuleTests.allTests),
|
||||
testCase(RedundantOptionalInitializationRuleTests.allTests),
|
||||
|
||||
@@ -468,6 +468,12 @@ class QuickDiscouragedPendingTestRuleTests: XCTestCase {
|
||||
}
|
||||
}
|
||||
|
||||
class RandomRuleTests: XCTestCase {
|
||||
func testWithDefaultConfiguration() {
|
||||
verifyRule(RandomRule.description)
|
||||
}
|
||||
}
|
||||
|
||||
class RedundantDiscardableLetRuleTests: XCTestCase {
|
||||
func testWithDefaultConfiguration() {
|
||||
verifyRule(RedundantDiscardableLetRule.description)
|
||||
|
||||
Reference in New Issue
Block a user