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
This commit is part of merge request !35. Comments created here will be created in the context of that merge request.
......@@ -32,7 +32,14 @@ private final class Memory<Value> {
}
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>(
get: XCTUnimplemented("\(Self.self).get"),
set: XCTUnimplemented("\(Self.self).set")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment