@@ -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