Skip to content

Commit

Permalink
Merge branch 'master' into support-method-overriding
Browse files Browse the repository at this point in the history
# Conflicts:
#	CHANGELOG.md
#	Templates/Templates/AutoMockable.stencil
#	Templates/Tests/Context/AutoMockable.swift
#	Templates/Tests/Context_Linux/AutoMockable.swift
  • Loading branch information
art-divin committed Dec 19, 2023
2 parents 48816e2 + 7f85e02 commit 3c81133
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions Templates/Tests/Expected/AutoMockable.expected
Original file line number Diff line number Diff line change
Expand Up @@ -725,6 +725,34 @@ class ExampleVarargMock: ExampleVararg {



//MARK: - string

var stringKeyArgsCallsCount = 0
var stringKeyArgsCalled: Bool {
return stringKeyArgsCallsCount > 0
}
var stringKeyArgsReceivedArguments: (key: String, args: CVarArg...)?
var stringKeyArgsReceivedInvocations: [(key: String, args: CVarArg...)] = []
var stringKeyArgsReturnValue: String!
var stringKeyArgsClosure: ((String, CVarArg...) -> String)?

func string(key: String, args: CVarArg...) -> String {
stringKeyArgsCallsCount += 1
stringKeyArgsReceivedArguments = (key: key, args: args)
stringKeyArgsReceivedInvocations.append((key: key, args: args))
if let stringKeyArgsClosure = stringKeyArgsClosure {
return stringKeyArgsClosure(key, args)
} else {
return stringKeyArgsReturnValue
}
}

}
class ExampleVarargMock: ExampleVararg {




//MARK: - string

var stringKeyArgsCallsCount = 0
Expand Down

0 comments on commit 3c81133

Please sign in to comment.