mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-03-25 19:01:16 +01:00
move type safety goodness
This commit is contained in:
@@ -868,6 +868,24 @@ final class FetchTests: BaseTestDataTestCase {
|
||||
}
|
||||
XCTAssertNil(objects)
|
||||
|
||||
let objectIDs = self.expectLogger([.logWarning]) {
|
||||
|
||||
stack.fetchObjectIDs(from, fetchClauses)
|
||||
}
|
||||
XCTAssertNil(objectIDs)
|
||||
}
|
||||
do {
|
||||
|
||||
let fetchClauses: [FetchClause] = [
|
||||
Where(#keyPath(TestEntity1.testNumber), isEqualTo: nil),
|
||||
OrderBy(.descending(#keyPath(TestEntity1.testEntityID)))
|
||||
]
|
||||
let objects = self.expectLogger([.logWarning]) {
|
||||
|
||||
stack.fetchAll(from, fetchClauses)
|
||||
}
|
||||
XCTAssertNil(objects)
|
||||
|
||||
let objectIDs = self.expectLogger([.logWarning]) {
|
||||
|
||||
stack.fetchObjectIDs(from, fetchClauses)
|
||||
@@ -1445,6 +1463,18 @@ final class FetchTests: BaseTestDataTestCase {
|
||||
}
|
||||
XCTAssertNil(count)
|
||||
}
|
||||
do {
|
||||
|
||||
let count = self.expectLogger([.logWarning]) {
|
||||
|
||||
stack.fetchCount(
|
||||
from,
|
||||
Where(#keyPath(TestEntity1.testNumber), isEqualTo: nil),
|
||||
OrderBy(.descending(#keyPath(TestEntity1.testEntityID)))
|
||||
)
|
||||
}
|
||||
XCTAssertNil(count)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1592,6 +1622,18 @@ final class FetchTests: BaseTestDataTestCase {
|
||||
}
|
||||
XCTAssertNil(count)
|
||||
}
|
||||
do {
|
||||
|
||||
let count = self.expectLogger([.logWarning]) {
|
||||
|
||||
stack.fetchCount(
|
||||
from,
|
||||
Where(#keyPath(TestEntity1.testNumber), isEqualTo: nil),
|
||||
OrderBy(.descending(#keyPath(TestEntity1.testEntityID)))
|
||||
)
|
||||
}
|
||||
XCTAssertNil(count)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2361,6 +2403,24 @@ final class FetchTests: BaseTestDataTestCase {
|
||||
}
|
||||
XCTAssertNil(objects)
|
||||
|
||||
let objectIDs = self.expectLogger([.logWarning]) {
|
||||
|
||||
transaction.fetchObjectIDs(from, fetchClauses)
|
||||
}
|
||||
XCTAssertNil(objectIDs)
|
||||
}
|
||||
do {
|
||||
|
||||
let fetchClauses: [FetchClause] = [
|
||||
Where(#keyPath(TestEntity1.testNumber), isEqualTo: nil),
|
||||
OrderBy(.descending(#keyPath(TestEntity1.testEntityID)))
|
||||
]
|
||||
let objects = self.expectLogger([.logWarning]) {
|
||||
|
||||
transaction.fetchAll(from, fetchClauses)
|
||||
}
|
||||
XCTAssertNil(objects)
|
||||
|
||||
let objectIDs = self.expectLogger([.logWarning]) {
|
||||
|
||||
transaction.fetchObjectIDs(from, fetchClauses)
|
||||
@@ -2938,6 +2998,18 @@ final class FetchTests: BaseTestDataTestCase {
|
||||
}
|
||||
XCTAssertNil(count)
|
||||
}
|
||||
do {
|
||||
|
||||
let count = self.expectLogger([.logWarning]) {
|
||||
|
||||
transaction.fetchCount(
|
||||
from,
|
||||
Where(#keyPath(TestEntity1.testNumber), isEqualTo: nil),
|
||||
OrderBy(.descending(#keyPath(TestEntity1.testEntityID)))
|
||||
)
|
||||
}
|
||||
XCTAssertNil(count)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -3085,6 +3157,18 @@ final class FetchTests: BaseTestDataTestCase {
|
||||
}
|
||||
XCTAssertNil(count)
|
||||
}
|
||||
do {
|
||||
|
||||
let count = self.expectLogger([.logWarning]) {
|
||||
|
||||
transaction.fetchCount(
|
||||
from,
|
||||
Where(#keyPath(TestEntity1.testNumber), isEqualTo: nil),
|
||||
OrderBy(.descending(#keyPath(TestEntity1.testEntityID)))
|
||||
)
|
||||
}
|
||||
XCTAssertNil(count)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user