Skip to content

Commit d0c38bb

Browse files
committed
fix spell issue
1 parent 2162986 commit d0c38bb

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

Tests/SwiftDataKitTests/Model/Article.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ actor ArticleHandler {
7979
try modelContext.save()
8080
}
8181

82-
func getCollectCountByTagByKit(categoryName: String) -> Int {
82+
func getCollectCountByCategoryByKit(categoryName: String) -> Int {
8383
guard let category = getCategory(by: categoryName) else {
8484
fatalError("Can't get tag by name:\(categoryName)")
8585
}
@@ -107,7 +107,7 @@ actor ArticleHandler {
107107
return collections.compactMap(\.objectID.persistentIdentifier)
108108
}
109109

110-
func getCollectNamesByTagByKit(categoryName: String) -> [String] {
110+
func getCollectNamesByCategoryByKit(categoryName: String) -> [String] {
111111
guard let category = getCategory(by: categoryName) else {
112112
fatalError("Can't get tag by name:\(categoryName)")
113113
}
@@ -123,7 +123,7 @@ actor ArticleHandler {
123123
return collections.map { $0.value(forKey: "name") as! String }
124124
}
125125

126-
func getCollectCountByTagByQuery(categoryName: String) -> Int {
126+
func getCollectCountByCategoryByQuery(categoryName: String) -> Int {
127127
guard let category = getCategory(by: categoryName) else {
128128
fatalError("Can't get tag by name:\(categoryName)")
129129
}

Tests/SwiftDataKitTests/ObjectIDToPersistentIDTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class ObjectIDToPersistentIDTests: XCTestCase {
1717
try await dataHandler.dataGenerator()
1818

1919
let queryHandler = ArticleHandler(modelContainer: container)
20-
let names = await queryHandler.getCollectNamesByTagByKit(categoryName: Category.Name.tech.rawValue)
20+
let names = await queryHandler.getCollectNamesByCategoryByKit(categoryName: Category.Name.tech.rawValue)
2121
let ids = await queryHandler.getCollectPersistentIdentifiersByTagByKit(categoryName: Category.Name.tech.rawValue)
2222
let collections = await queryHandler.convertIdentifierToModel(ids: ids, type: ArticleCollection.self)
2323
XCTAssertEqual(names, collections.map(\.name))

Tests/SwiftDataKitTests/SUBQUERYTests.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ class SUBQUERYTests: XCTestCase {
1515
let container = try ModelContainer(for: ArticleCollection.self, Article.self, Category.self, configurations: .init(isStoredInMemoryOnly: true))
1616
let handler = ArticleHandler(modelContainer: container)
1717
try await handler.dataGenerator()
18-
let countByKit = await handler.getCollectCountByTagByKit(categoryName: Category.Name.tech.rawValue)
19-
let countByQuery = await handler.getCollectCountByTagByQuery(categoryName: Category.Name.tech.rawValue)
18+
let countByKit = await handler.getCollectCountByCategoryByKit(categoryName: Category.Name.tech.rawValue)
19+
let countByQuery = await handler.getCollectCountByCategoryByQuery(categoryName: Category.Name.tech.rawValue)
2020
XCTAssertEqual(countByKit, countByQuery)
2121
}
2222

@@ -27,7 +27,7 @@ class SUBQUERYTests: XCTestCase {
2727
try await handler.dataGenerator(collectionCount: 300, articleCount: 1000)
2828
await handler.reset()
2929
measureAsync(timeout: 10) {
30-
let _ = await handler.getCollectCountByTagByKit(categoryName: Category.Name.tech.rawValue)
30+
let _ = await handler.getCollectCountByCategoryByKit(categoryName: Category.Name.tech.rawValue)
3131
}
3232
}
3333

@@ -38,7 +38,7 @@ class SUBQUERYTests: XCTestCase {
3838
try await handler.dataGenerator(collectionCount: 300, articleCount: 1000)
3939
await handler.reset()
4040
measureAsync(timeout: 10) {
41-
let _ = await handler.getCollectCountByTagByQuery(categoryName: Category.Name.tech.rawValue)
41+
let _ = await handler.getCollectCountByCategoryByQuery(categoryName: Category.Name.tech.rawValue)
4242
}
4343
}
4444
}

0 commit comments

Comments
 (0)