2025-01-25 15:40:12 -08:00
|
|
|
//
|
|
|
|
|
// 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()
|
|
|
|
|
|
2026-03-09 14:04:12 +01:00
|
|
|
controller = PersistenceController.forUnitTests()
|
2025-01-25 15:40:12 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
override func tearDown() {
|
|
|
|
|
super.tearDown()
|
|
|
|
|
controller = nil
|
|
|
|
|
}
|
|
|
|
|
}
|