-
-
Save ennioma/64d062209911429eae314a03f76dbef1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class DummyContext: StorageContext { | |
required init(configuration: ConfigurationType = .basic(url: nil)) throws {} | |
// ... | |
func fetch<T: Storable>(_ model: T.Type, predicate: NSPredicate? = nil, sorted: Sorted? = nil, completion: (([T]) -> ())) { | |
let t = Object() as! T | |
completion([t, t, t, t]) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment