From bb161d380b04b5b6d5ef0c880ec09f104e5c8197 Mon Sep 17 00:00:00 2001 From: Igor Savelev Date: Fri, 22 Dec 2023 17:29:56 +0000 Subject: [PATCH] Added SubscriptProtocol to Linux variant of AutoMockable.swift --- Templates/Tests/Context_Linux/AutoMockable.swift | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Templates/Tests/Context_Linux/AutoMockable.swift b/Templates/Tests/Context_Linux/AutoMockable.swift index 70e0f04e6..f2b63c530 100644 --- a/Templates/Tests/Context_Linux/AutoMockable.swift +++ b/Templates/Tests/Context_Linux/AutoMockable.swift @@ -226,3 +226,11 @@ public protocol ProtocolWithOverrides { func doSomething(_ data: String) -> (([Int], [String]) -> Void) func doSomething(_ data: String) throws -> (([Int], [Any]) -> Void) } + +// sourcery: AutoMockable +protocol SubscriptProtocol { + subscript(arg: Int) -> String { get set } + subscript(arg: T) -> Int { get } + subscript(arg: T) -> T? { get set } + subscript(arg: String) -> T? where T: Cancellable { get } +}