mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-11-16 05:41:09 +01:00
WIP: Unit tests
This commit is contained in:
1 parent
b199f38b0c
commit
fcca6b205e
14 files changed
+1686
-191
No files matched your search
@@ -78,10 +78,6 @@ public extension DataStack {
|
||||
NSThread.isMainThread(),
|
||||
"Attempted to observe objects from \(cs_typeName(self)) outside the main thread."
|
||||
)
|
||||
CoreStore.assert(
|
||||
fetchClauses.contains { $0 is OrderBy },
|
||||
"A ListMonitor requires an OrderBy clause."
|
||||
)
|
||||
return ListMonitor(
|
||||
dataStack: self,
|
||||
from: from,
|
||||
@@ -118,10 +114,6 @@ public extension DataStack {
|
||||
NSThread.isMainThread(),
|
||||
"Attempted to observe objects from \(cs_typeName(self)) outside the main thread."
|
||||
)
|
||||
CoreStore.assert(
|
||||
fetchClauses.contains { $0 is OrderBy },
|
||||
"A ListMonitor requires an OrderBy clause."
|
||||
)
|
||||
_ = ListMonitor(
|
||||
dataStack: self,
|
||||
from: from,
|
||||
@@ -163,10 +155,6 @@ public extension DataStack {
|
||||
NSThread.isMainThread(),
|
||||
"Attempted to observe objects from \(cs_typeName(self)) outside the main thread."
|
||||
)
|
||||
CoreStore.assert(
|
||||
fetchClauses.contains { $0 is OrderBy },
|
||||
"A ListMonitor requires an OrderBy clause."
|
||||
)
|
||||
|
||||
return ListMonitor(
|
||||
dataStack: self,
|
||||
@@ -206,10 +194,6 @@ public extension DataStack {
|
||||
NSThread.isMainThread(),
|
||||
"Attempted to observe objects from \(cs_typeName(self)) outside the main thread."
|
||||
)
|
||||
CoreStore.assert(
|
||||
fetchClauses.contains { $0 is OrderBy },
|
||||
"A ListMonitor requires an OrderBy clause."
|
||||
)
|
||||
|
||||
_ = ListMonitor(
|
||||
dataStack: self,
|
||||
|
||||
Reference in new issue
Block a user