Skip to content

Commit

Permalink
Added SubscriptProtocol to Linux variant of AutoMockable.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
igor-savelev-bumble committed Dec 22, 2023
1 parent b1efbc8 commit bb161d3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Templates/Tests/Context_Linux/AutoMockable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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<T>(arg: T) -> Int { get }
subscript<T: Hashable>(arg: T) -> T? { get set }
subscript<T>(arg: String) -> T? where T: Cancellable { get }
}

0 comments on commit bb161d3

Please sign in to comment.