Эх сурвалжийг харах

Mark the test classes as final.
This won't have the same effect as the Swift classes, but should speed up the test up a tiny bit.

C.W. Betts 10 жил өмнө
parent
commit
990a67706d

+ 1 - 1
CryptoSwiftTests/AESTests.swift

@@ -10,7 +10,7 @@ import Foundation
 import XCTest
 import CryptoSwift
 
-class AESTests: XCTestCase {
+final class AESTests: XCTestCase {
     // 128 bit key
     let aesKey:[UInt8] = [0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f]
 

+ 1 - 1
CryptoSwiftTests/ChaCha20Tests.swift

@@ -10,7 +10,7 @@ import Foundation
 import XCTest
 import CryptoSwift
 
-class ChaCha20Tests: XCTestCase {
+final class ChaCha20Tests: XCTestCase {
 
     override func setUp() {
         super.setUp()

+ 1 - 1
CryptoSwiftTests/ExtensionsTest.swift

@@ -10,7 +10,7 @@ import Foundation
 import XCTest
 import CryptoSwift
 
-class ExtensionsTest: XCTestCase {
+final class ExtensionsTest: XCTestCase {
 
     override func setUp() {
         super.setUp()

+ 1 - 1
CryptoSwiftTests/HMACTests.swift

@@ -10,7 +10,7 @@ import Foundation
 import XCTest
 import CryptoSwift
 
-class HMACTests: XCTestCase {
+final class HMACTests: XCTestCase {
     
     override func setUp() {
         super.setUp()

+ 1 - 1
CryptoSwiftTests/HashTests.swift

@@ -9,7 +9,7 @@
 import XCTest
 import CryptoSwift
 
-class CryptoSwiftTests: XCTestCase {
+final class CryptoSwiftTests: XCTestCase {
     
     override func setUp() {
         super.setUp()

+ 1 - 1
CryptoSwiftTests/PaddingTests.swift

@@ -10,7 +10,7 @@ import Foundation
 import XCTest
 import CryptoSwift
 
-class PaddingTests: XCTestCase {
+final class PaddingTests: XCTestCase {
     func testPKCS7_0() {
         let input:[UInt8]    = [1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6]
         let expected:[UInt8] = [1,2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16,16]

+ 1 - 1
CryptoSwiftTests/Poly1305Tests.swift

@@ -10,7 +10,7 @@ import Foundation
 import XCTest
 import CryptoSwift
 
-class Poly1305Tests: XCTestCase {
+final class Poly1305Tests: XCTestCase {
     
     override func setUp() {
         super.setUp()