Ver Fonte

remove unused and never maintained test source

B. Petersen há 1 ano atrás
pai
commit
5bc2d5a240

+ 0 - 12
DcCore/DcCore.xcodeproj/project.pbxproj

@@ -34,8 +34,6 @@
 		30421931243DE0F200516852 /* DcCore.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = DcCore.framework; sourceTree = BUILT_PRODUCTS_DIR; };
 		30421934243DE0F200516852 /* DcCore.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = DcCore.h; sourceTree = "<group>"; };
 		30421935243DE0F200516852 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
-		3042193F243DE0F200516852 /* DcCoreTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DcCoreTests.swift; sourceTree = "<group>"; };
-		30421941243DE0F200516852 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
 		3042194C243DE15D00516852 /* wrapper.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = wrapper.h; path = ../../DcCore/DcCore/DC/wrapper.h; sourceTree = "<group>"; };
 		3042194D243DE15D00516852 /* Wrapper.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = Wrapper.swift; path = ../../DcCore/DcCore/DC/Wrapper.swift; sourceTree = "<group>"; };
 		3042194E243DE15D00516852 /* wrapper.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; name = wrapper.c; path = ../../DcCore/DcCore/DC/wrapper.c; sourceTree = "<group>"; };
@@ -79,7 +77,6 @@
 			children = (
 				3042195A243DF1C500516852 /* deltachat.h */,
 				30421933243DE0F200516852 /* DcCore */,
-				3042193E243DE0F200516852 /* DcCoreTests */,
 				30421932243DE0F200516852 /* Products */,
 				30421957243DE61400516852 /* Frameworks */,
 			);
@@ -105,15 +102,6 @@
 			path = DcCore;
 			sourceTree = "<group>";
 		};
-		3042193E243DE0F200516852 /* DcCoreTests */ = {
-			isa = PBXGroup;
-			children = (
-				3042193F243DE0F200516852 /* DcCoreTests.swift */,
-				30421941243DE0F200516852 /* Info.plist */,
-			);
-			path = DcCoreTests;
-			sourceTree = "<group>";
-		};
 		3042194B243DE15D00516852 /* DC */ = {
 			isa = PBXGroup;
 			children = (

+ 0 - 26
DcCore/DcCoreTests/DcCoreTests.swift

@@ -1,26 +0,0 @@
-import XCTest
-@testable import DcCore
-
-class DcCoreTests: XCTestCase {
-
-    override func setUpWithError() throws {
-        // Put setup code here. This method is called before the invocation of each test method in the class.
-    }
-
-    override func tearDownWithError() throws {
-        // Put teardown code here. This method is called after the invocation of each test method in the class.
-    }
-
-    func testExample() throws {
-        // This is an example of a functional test case.
-        // Use XCTAssert and related functions to verify your tests produce the correct results.
-    }
-
-    func testPerformanceExample() throws {
-        // This is an example of a performance test case.
-        self.measure {
-            // Put the code you want to measure the time of here.
-        }
-    }
-
-}

+ 0 - 22
DcCore/DcCoreTests/Info.plist

@@ -1,22 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
-	<key>CFBundleDevelopmentRegion</key>
-	<string>$(DEVELOPMENT_LANGUAGE)</string>
-	<key>CFBundleExecutable</key>
-	<string>$(EXECUTABLE_NAME)</string>
-	<key>CFBundleIdentifier</key>
-	<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
-	<key>CFBundleInfoDictionaryVersion</key>
-	<string>6.0</string>
-	<key>CFBundleName</key>
-	<string>$(PRODUCT_NAME)</string>
-	<key>CFBundlePackageType</key>
-	<string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
-	<key>CFBundleShortVersionString</key>
-	<string>1.0</string>
-	<key>CFBundleVersion</key>
-	<string>1</string>
-</dict>
-</plist>

+ 0 - 12
deltachat-ios.xcodeproj/project.pbxproj

@@ -456,8 +456,6 @@
 		AE77838C23E32ED20093EABD /* ContactDetailViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContactDetailViewModel.swift; sourceTree = "<group>"; };
 		AE77838E23E4276D0093EABD /* ContactCellViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContactCellViewModel.swift; sourceTree = "<group>"; };
 		AE8519E92272FDCA00ED86F0 /* DeviceContactsHandler.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DeviceContactsHandler.swift; sourceTree = "<group>"; };
-		AE851A03227AECDE00ED86F0 /* deltachat_iosTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = deltachat_iosTests.swift; sourceTree = "<group>"; };
-		AE851A05227AECDF00ED86F0 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
 		AE851AC4227C755A00ED86F0 /* Protocols.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Protocols.swift; sourceTree = "<group>"; };
 		AE851ACF227DF50900ED86F0 /* GroupChatDetailViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GroupChatDetailViewController.swift; sourceTree = "<group>"; };
 		AE8DD450249D1DFB009A4BC1 /* DocumentGalleryFileCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DocumentGalleryFileCell.swift; sourceTree = "<group>"; };
@@ -793,7 +791,6 @@
 				306011B422E5E7FB00C1CE6F /* Localizable.stringsdict */,
 				7837B63F21E54DC600CDE126 /* .swiftlint.yml */,
 				7A9FB1421FB061E2001FEA36 /* deltachat-ios */,
-				AE851A02227AECDE00ED86F0 /* deltachat-iosTests */,
 				30E8F2112447285600CE2C90 /* DcShare */,
 				7A9FB1411FB061E2001FEA36 /* Products */,
 				7A9FB4F81FB084E6001FEA36 /* Frameworks */,
@@ -905,15 +902,6 @@
 			path = ViewModel;
 			sourceTree = "<group>";
 		};
-		AE851A02227AECDE00ED86F0 /* deltachat-iosTests */ = {
-			isa = PBXGroup;
-			children = (
-				AE851A03227AECDE00ED86F0 /* deltachat_iosTests.swift */,
-				AE851A05227AECDF00ED86F0 /* Info.plist */,
-			);
-			path = "deltachat-iosTests";
-			sourceTree = "<group>";
-		};
 		AE851AC0227C693B00ED86F0 /* Controller */ = {
 			isa = PBXGroup;
 			children = (

+ 0 - 22
deltachat-iosTests/Info.plist

@@ -1,22 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
-	<key>CFBundleDevelopmentRegion</key>
-	<string>$(DEVELOPMENT_LANGUAGE)</string>
-	<key>CFBundleExecutable</key>
-	<string>$(EXECUTABLE_NAME)</string>
-	<key>CFBundleIdentifier</key>
-	<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
-	<key>CFBundleInfoDictionaryVersion</key>
-	<string>6.0</string>
-	<key>CFBundleName</key>
-	<string>$(PRODUCT_NAME)</string>
-	<key>CFBundlePackageType</key>
-	<string>BNDL</string>
-	<key>CFBundleShortVersionString</key>
-	<string>1.0</string>
-	<key>CFBundleVersion</key>
-	<string>1</string>
-</dict>
-</plist>

+ 0 - 54
deltachat-iosTests/deltachat_iosTests.swift

@@ -1,54 +0,0 @@
-@testable import deltachat_ios
-import XCTest
-
-class DeltachatTests: XCTestCase {
-    var testContact: MRContact?
-
-    override func setUp() {
-        let contactIds = Utils.getContactIds()
-
-        let contacts = contactIds.map { MRContact(id: $0) }
-
-        testContact = contacts.filter { $0.name == "John Appleseed" }.first
-        // Put setup code here. This method is called before the invocation of each test method in the class.
-    }
-
-    override func tearDown() {
-        // Put teardown code here. This method is called after the invocation of each test method in the class.
-    }
-
-    func testContactSearchForSubsequences() {
-        // this test will only success if run on a simulator (assuming one of the sample contacts is named John Appleseed)
-        guard let appleseedContact = testContact else {
-            return
-        }
-
-        XCTAssert(appleseedContact.name == "John Appleseed", "Test contacts name is John Appleseed")
-        XCTAssert(appleseedContact.email == "John-Appleseed@mac.com", "Test contacts email is john.appleseed@mac.com")
-
-        let indexDetailA = appleseedContact.contains(searchText: "jmc")
-
-        XCTAssert(indexDetailA.count == 2)
-        XCTAssert(indexDetailA[0].contactDetail == .NAME)
-        XCTAssert(indexDetailA[0].indexes == [0])
-        XCTAssert(indexDetailA[1].indexes == [15, 17])
-
-        let indexDetailB = appleseedContact.contains(searchText: "joj")
-        XCTAssert(indexDetailB[0].indexes == [0, 1])
-        XCTAssert(indexDetailB[1].indexes == [0])
-
-        let indexDetailC = appleseedContact.contains(searchText: "jojh")
-        XCTAssert(indexDetailC[0].indexes == [0, 1])
-        XCTAssert(indexDetailC[1].indexes == [0, 2])
-
-        let indexDetailD = appleseedContact.contains(searchText: "joz")
-        XCTAssert(indexDetailD.isEmpty)
-    }
-
-    func testPerformanceExample() {
-        // This is an example of a performance test case.
-        measure {
-            // Put the code you want to measure the time of here.
-        }
-    }
-}