Skip to content

Commit

Permalink
Update AutoMockable.expected (#1253)
Browse files Browse the repository at this point in the history
* updated automockable.expected

* updated CHANGELOG

* attempt to resolve issue on Linux

* added missing example code for linux
  • Loading branch information
art-divin committed Jan 9, 2024
1 parent 71c2d46 commit 5856e3b
Show file tree
Hide file tree
Showing 3 changed files with 715 additions and 645 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
# Sourcery CHANGELOG
## 2.1.4
## Changes
- Added generic requirements and generic parameters to Subscript ([#1242](https://github.com/krzysztofzablocki/Sourcery/issues/1242))
- Added isAsync and throws to Subscript ([#1249](https://github.com/krzysztofzablocki/Sourcery/issues/1249))
- Initialise Subscript's returnTypeName with TypeSyntax, not String ([#1250](https://github.com/krzysztofzablocki/Sourcery/issues/1250))
- Swifty generated variable names + fixed generated mocks compilation issues due to method generic parameters ([#1252](https://github.com/krzysztofzablocki/Sourcery/issues/1252))

## 2.1.3
## Changes
- Add support for `typealias`es in EJS templates. ([#1208](https://github.com/krzysztofzablocki/Sourcery/pull/1208))
Expand Down
5 changes: 5 additions & 0 deletions Templates/Tests/Context_Linux/AutoMockable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -235,3 +235,8 @@ protocol SubscriptProtocol {
subscript<T: Hashable>(arg: T) -> T? { get set }
subscript<T>(arg: String) -> T? where T: Cancellable { get throws }
}

// sourcery: AutoMockable
public protocol ProtocolWithMethodWithGenericParameters {
func execute(param: Result<Int, Error>) -> Result<String, Error>
}

0 comments on commit 5856e3b

Please sign in to comment.