Skip to content
Snippets Groups Projects
Commit 99beabff authored by Dariusz Rybicki's avatar Dariusz Rybicki
Browse files

Add unimplemented placeholders

parent 1f24e4dc
No related branches found
No related tags found
2 merge requests!102Release 1.0.0,!35Improve testability
...@@ -32,7 +32,14 @@ private final class Memory<Value> { ...@@ -32,7 +32,14 @@ private final class Memory<Value> {
} }
extension Stored { extension Stored {
public static func unimplemented() -> Stored<Value> { public static func unimplemented(placeholder: Value) -> Stored<Value> {
Stored<Value>(
get: XCTUnimplemented("\(Self.self).get", placeholder: placeholder),
set: XCTUnimplemented("\(Self.self).set")
)
}
public static func unimplemented<V>() -> Stored<Optional<V>> where Value == Optional<V> {
Stored<Value>( Stored<Value>(
get: XCTUnimplemented("\(Self.self).get"), get: XCTUnimplemented("\(Self.self).get"),
set: XCTUnimplemented("\(Self.self).set") set: XCTUnimplemented("\(Self.self).set")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment