Skip to content

Commit e5dc2f8

Browse files
committed
unit tests
1 parent 917891d commit e5dc2f8

1 file changed

Lines changed: 0 additions & 22 deletions

File tree

AnimalsApp/AnimalsAppTests/Mocks/CoreDataMock.swift

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -6,31 +6,9 @@
66
//
77

88
import Foundation
9-
import CoreData
109
@testable import AnimalsApp
1110
import XCTest
1211

13-
//struct ManagedContextMock {
14-
//
15-
// static func build() -> NSManagedObjectContext {
16-
//
17-
// let persistentStoreDescription = NSPersistentStoreDescription()
18-
// persistentStoreDescription.type = NSInMemoryStoreType
19-
//
20-
// let container = NSPersistentContainer(name: "AnimalsApp")
21-
// container.persistentStoreDescriptions = [persistentStoreDescription]
22-
//
23-
// container.loadPersistentStores { _, error in
24-
// if let error = error as NSError? {
25-
// XCTFail("Unresolved error \(error), \(error.userInfo)")
26-
// }
27-
// }
28-
//
29-
// return container.viewContext
30-
// }
31-
//
32-
//}
33-
3412
class CoreDataMock: CoreDataContract {
3513
var delegate = [UpdateDelegateProtocol]()
3614
var favoriteAnimals = [FavoriteAnimal]()

0 commit comments

Comments
 (0)