mirror of
https://github.com/mssun/passforios.git
synced 2026-02-27 18:24:03 +01:00
31 lines
639 B
Swift
31 lines
639 B
Swift
//
|
|
// CoreDataTestCase.swift
|
|
// pass
|
|
//
|
|
// Created by Mingshen Sun on 1/4/25.
|
|
// Copyright © 2025 Bob Sun. All rights reserved.
|
|
//
|
|
|
|
import CoreData
|
|
import Foundation
|
|
import XCTest
|
|
|
|
@testable import passKit
|
|
|
|
// swiftlint:disable:next final_test_case
|
|
class CoreDataTestCase: XCTestCase {
|
|
// swiftlint:disable:next test_case_accessibility
|
|
private(set) var controller: PersistenceController!
|
|
|
|
override func setUpWithError() throws {
|
|
try super.setUpWithError()
|
|
|
|
controller = PersistenceController(isUnitTest: true)
|
|
}
|
|
|
|
override func tearDown() {
|
|
super.tearDown()
|
|
controller = nil
|
|
}
|
|
}
|