Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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