Skip to content

Commit 58625e4

Browse files
committed
Add 'AnyProtocolWithOptionals' to AutoMockable for Linux
1 parent 677ae3f commit 58625e4

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

Templates/Tests/Context_Linux/AutoMockable.swift

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,19 @@ protocol AnyProtocol: AutoMockable {
220220
func z() -> any StubProtocol & CustomStringConvertible
221221
}
222222

223+
protocol AnyProtocolWithOptionals: AutoMockable {
224+
var a: [any StubProtocol]? { get }
225+
var b: [Result<Void, any Error>] { get }
226+
var c: (Int, [(any StubProtocol)?])? { get }
227+
var d: (Int, (any StubProtocol)?) { get }
228+
var e: (Int, (any StubProtocol)?)? { get }
229+
var f: (Int, [any StubProtocol]?)? { get }
230+
func g(_ g: String, handler: @escaping ([any StubProtocol]?) -> Void) -> Bool
231+
func h(_ h: String, handler: @escaping ([StubProtocol]) -> Void) -> Bool
232+
func i(_ i: String, handler: @escaping ([(any StubProtocol)?]) -> Void) -> Bool
233+
var j: (anyInteger: Int, anyArray: [any StubProtocol]?)? { get }
234+
}
235+
223236
protocol SomeProtocol: AutoMockable {
224237
func a(_ x: (some StubProtocol)?, y: (some StubProtocol)!, z: some StubProtocol)
225238
func b(x: (some StubProtocol)?, y: (some StubProtocol)!, z: some StubProtocol) async -> String

0 commit comments

Comments
 (0)