Skip to content

Commit

Permalink
build & generate
Browse files Browse the repository at this point in the history
  • Loading branch information
tgyhlsb committed May 12, 2022
1 parent 1077d5f commit e31ae95
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 30 deletions.
12 changes: 6 additions & 6 deletions SwiftyMocky-Tests/iOS/Mocks/Mock.15.generated.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5090,16 +5090,16 @@ open class InoutProtocolMock: InoutProtocol, Mock {
}

open func genericInOutClosure<T>(closure: (inout T) -> Void) {
addInvocation(.m_genericInOutClosure__closure_closure(Parameter<(inout T) -> Void>.any))
let perform = methodPerformValue(.m_genericInOutClosure__closure_closure(Parameter<(inout T) -> Void>.any)) as? ((inout T) -> Void) -> Void
addInvocation(.m_genericInOutClosure__closure_closure(Parameter<(inout T) -> Void>.any.wrapAsGeneric()))
let perform = methodPerformValue(.m_genericInOutClosure__closure_closure(Parameter<(inout T) -> Void>.any.wrapAsGeneric())) as? ((inout T) -> Void) -> Void
perform?(`closure`)
}


fileprivate enum MethodType {
case m_passThisAsInOut__value_value(Parameter<URLRequest>)
case m_returnAndInOut__value_value(Parameter<Int>)
case m_genericInOutClosure__closure_closure(Parameter<(inout T) -> Void>)
case m_genericInOutClosure__closure_closure(Parameter<GenericAttribute>)

static func compareParameters(lhs: MethodType, rhs: MethodType, matcher: Matcher) -> Matcher.ComparisonResult {
switch (lhs, rhs) {
Expand Down Expand Up @@ -5163,7 +5163,7 @@ open class InoutProtocolMock: InoutProtocol, Mock {

public static func passThisAsInOut(value: Parameter<URLRequest>) -> Verify { return Verify(method: .m_passThisAsInOut__value_value(`value`))}
public static func returnAndInOut(value: Parameter<Int>) -> Verify { return Verify(method: .m_returnAndInOut__value_value(`value`))}
public static func genericInOutClosure(closure: Parameter<(inout T) -> Void>) -> Verify { return Verify(method: .m_genericInOutClosure__closure_closure(`closure`))}
public static func genericInOutClosure<T>(closure: Parameter<(inout T) -> Void>) -> Verify { return Verify(method: .m_genericInOutClosure__closure_closure(`closure`.wrapAsGeneric()))}
}

public struct Perform {
Expand All @@ -5176,8 +5176,8 @@ open class InoutProtocolMock: InoutProtocol, Mock {
public static func returnAndInOut(value: Parameter<Int>, perform: @escaping (inout Int) -> Void) -> Perform {
return Perform(method: .m_returnAndInOut__value_value(`value`), performs: perform)
}
public static func genericInOutClosure(closure: Parameter<(inout T) -> Void>, perform: @escaping ((inout T) -> Void) -> Void) -> Perform {
return Perform(method: .m_genericInOutClosure__closure_closure(`closure`), performs: perform)
public static func genericInOutClosure<T>(closure: Parameter<(inout T) -> Void>, perform: @escaping ((inout T) -> Void) -> Void) -> Perform {
return Perform(method: .m_genericInOutClosure__closure_closure(`closure`.wrapAsGeneric()), performs: perform)
}
}

Expand Down
12 changes: 6 additions & 6 deletions SwiftyMocky-Tests/iOS/Mocks/Mock.generated.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4896,16 +4896,16 @@ open class InoutProtocolMock: InoutProtocol, Mock {
}

open func genericInOutClosure<T>(closure: (inout T) -> Void) {
addInvocation(.m_genericInOutClosure__closure_closure(Parameter<(inout T) -> Void>.any))
let perform = methodPerformValue(.m_genericInOutClosure__closure_closure(Parameter<(inout T) -> Void>.any)) as? ((inout T) -> Void) -> Void
addInvocation(.m_genericInOutClosure__closure_closure(Parameter<(inout T) -> Void>.any.wrapAsGeneric()))
let perform = methodPerformValue(.m_genericInOutClosure__closure_closure(Parameter<(inout T) -> Void>.any.wrapAsGeneric())) as? ((inout T) -> Void) -> Void
perform?(`closure`)
}


fileprivate enum MethodType {
case m_passThisAsInOut__value_value(Parameter<URLRequest>)
case m_returnAndInOut__value_value(Parameter<Int>)
case m_genericInOutClosure__closure_closure(Parameter<(inout T) -> Void>)
case m_genericInOutClosure__closure_closure(Parameter<GenericAttribute>)

static func compareParameters(lhs: MethodType, rhs: MethodType, matcher: Matcher) -> Matcher.ComparisonResult {
switch (lhs, rhs) {
Expand Down Expand Up @@ -4969,7 +4969,7 @@ open class InoutProtocolMock: InoutProtocol, Mock {

public static func passThisAsInOut(value: Parameter<URLRequest>) -> Verify { return Verify(method: .m_passThisAsInOut__value_value(`value`))}
public static func returnAndInOut(value: Parameter<Int>) -> Verify { return Verify(method: .m_returnAndInOut__value_value(`value`))}
public static func genericInOutClosure(closure: Parameter<(inout T) -> Void>) -> Verify { return Verify(method: .m_genericInOutClosure__closure_closure(`closure`))}
public static func genericInOutClosure<T>(closure: Parameter<(inout T) -> Void>) -> Verify { return Verify(method: .m_genericInOutClosure__closure_closure(`closure`.wrapAsGeneric()))}
}

public struct Perform {
Expand All @@ -4982,8 +4982,8 @@ open class InoutProtocolMock: InoutProtocol, Mock {
public static func returnAndInOut(value: Parameter<Int>, perform: @escaping (inout Int) -> Void) -> Perform {
return Perform(method: .m_returnAndInOut__value_value(`value`), performs: perform)
}
public static func genericInOutClosure(closure: Parameter<(inout T) -> Void>, perform: @escaping ((inout T) -> Void) -> Void) -> Perform {
return Perform(method: .m_genericInOutClosure__closure_closure(`closure`), performs: perform)
public static func genericInOutClosure<T>(closure: Parameter<(inout T) -> Void>, perform: @escaping ((inout T) -> Void) -> Void) -> Perform {
return Perform(method: .m_genericInOutClosure__closure_closure(`closure`.wrapAsGeneric()), performs: perform)
}
}

Expand Down
12 changes: 6 additions & 6 deletions SwiftyMocky-Tests/macOS/Mocks/Mock.generated.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4894,16 +4894,16 @@ open class InoutProtocolMock: InoutProtocol, Mock {
}

open func genericInOutClosure<T>(closure: (inout T) -> Void) {
addInvocation(.m_genericInOutClosure__closure_closure(Parameter<(inout T) -> Void>.any))
let perform = methodPerformValue(.m_genericInOutClosure__closure_closure(Parameter<(inout T) -> Void>.any)) as? ((inout T) -> Void) -> Void
addInvocation(.m_genericInOutClosure__closure_closure(Parameter<(inout T) -> Void>.any.wrapAsGeneric()))
let perform = methodPerformValue(.m_genericInOutClosure__closure_closure(Parameter<(inout T) -> Void>.any.wrapAsGeneric())) as? ((inout T) -> Void) -> Void
perform?(`closure`)
}


fileprivate enum MethodType {
case m_passThisAsInOut__value_value(Parameter<URLRequest>)
case m_returnAndInOut__value_value(Parameter<Int>)
case m_genericInOutClosure__closure_closure(Parameter<(inout T) -> Void>)
case m_genericInOutClosure__closure_closure(Parameter<GenericAttribute>)

static func compareParameters(lhs: MethodType, rhs: MethodType, matcher: Matcher) -> Matcher.ComparisonResult {
switch (lhs, rhs) {
Expand Down Expand Up @@ -4967,7 +4967,7 @@ open class InoutProtocolMock: InoutProtocol, Mock {

public static func passThisAsInOut(value: Parameter<URLRequest>) -> Verify { return Verify(method: .m_passThisAsInOut__value_value(`value`))}
public static func returnAndInOut(value: Parameter<Int>) -> Verify { return Verify(method: .m_returnAndInOut__value_value(`value`))}
public static func genericInOutClosure(closure: Parameter<(inout T) -> Void>) -> Verify { return Verify(method: .m_genericInOutClosure__closure_closure(`closure`))}
public static func genericInOutClosure<T>(closure: Parameter<(inout T) -> Void>) -> Verify { return Verify(method: .m_genericInOutClosure__closure_closure(`closure`.wrapAsGeneric()))}
}

public struct Perform {
Expand All @@ -4980,8 +4980,8 @@ open class InoutProtocolMock: InoutProtocol, Mock {
public static func returnAndInOut(value: Parameter<Int>, perform: @escaping (inout Int) -> Void) -> Perform {
return Perform(method: .m_returnAndInOut__value_value(`value`), performs: perform)
}
public static func genericInOutClosure(closure: Parameter<(inout T) -> Void>, perform: @escaping ((inout T) -> Void) -> Void) -> Perform {
return Perform(method: .m_genericInOutClosure__closure_closure(`closure`), performs: perform)
public static func genericInOutClosure<T>(closure: Parameter<(inout T) -> Void>, perform: @escaping ((inout T) -> Void) -> Void) -> Perform {
return Perform(method: .m_genericInOutClosure__closure_closure(`closure`.wrapAsGeneric()), performs: perform)
}
}

Expand Down
12 changes: 6 additions & 6 deletions SwiftyMocky-Tests/tvOS/Mocks/Mock.generated.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4894,16 +4894,16 @@ open class InoutProtocolMock: InoutProtocol, Mock {
}

open func genericInOutClosure<T>(closure: (inout T) -> Void) {
addInvocation(.m_genericInOutClosure__closure_closure(Parameter<(inout T) -> Void>.any))
let perform = methodPerformValue(.m_genericInOutClosure__closure_closure(Parameter<(inout T) -> Void>.any)) as? ((inout T) -> Void) -> Void
addInvocation(.m_genericInOutClosure__closure_closure(Parameter<(inout T) -> Void>.any.wrapAsGeneric()))
let perform = methodPerformValue(.m_genericInOutClosure__closure_closure(Parameter<(inout T) -> Void>.any.wrapAsGeneric())) as? ((inout T) -> Void) -> Void
perform?(`closure`)
}


fileprivate enum MethodType {
case m_passThisAsInOut__value_value(Parameter<URLRequest>)
case m_returnAndInOut__value_value(Parameter<Int>)
case m_genericInOutClosure__closure_closure(Parameter<(inout T) -> Void>)
case m_genericInOutClosure__closure_closure(Parameter<GenericAttribute>)

static func compareParameters(lhs: MethodType, rhs: MethodType, matcher: Matcher) -> Matcher.ComparisonResult {
switch (lhs, rhs) {
Expand Down Expand Up @@ -4967,7 +4967,7 @@ open class InoutProtocolMock: InoutProtocol, Mock {

public static func passThisAsInOut(value: Parameter<URLRequest>) -> Verify { return Verify(method: .m_passThisAsInOut__value_value(`value`))}
public static func returnAndInOut(value: Parameter<Int>) -> Verify { return Verify(method: .m_returnAndInOut__value_value(`value`))}
public static func genericInOutClosure(closure: Parameter<(inout T) -> Void>) -> Verify { return Verify(method: .m_genericInOutClosure__closure_closure(`closure`))}
public static func genericInOutClosure<T>(closure: Parameter<(inout T) -> Void>) -> Verify { return Verify(method: .m_genericInOutClosure__closure_closure(`closure`.wrapAsGeneric()))}
}

public struct Perform {
Expand All @@ -4980,8 +4980,8 @@ open class InoutProtocolMock: InoutProtocol, Mock {
public static func returnAndInOut(value: Parameter<Int>, perform: @escaping (inout Int) -> Void) -> Perform {
return Perform(method: .m_returnAndInOut__value_value(`value`), performs: perform)
}
public static func genericInOutClosure(closure: Parameter<(inout T) -> Void>, perform: @escaping ((inout T) -> Void) -> Void) -> Perform {
return Perform(method: .m_genericInOutClosure__closure_closure(`closure`), performs: perform)
public static func genericInOutClosure<T>(closure: Parameter<(inout T) -> Void>, perform: @escaping ((inout T) -> Void) -> Void) -> Perform {
return Perform(method: .m_genericInOutClosure__closure_closure(`closure`.wrapAsGeneric()), performs: perform)
}
}

Expand Down
12 changes: 6 additions & 6 deletions Tests/SwiftyMockyTests/Mock.generated.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4895,16 +4895,16 @@ open class InoutProtocolMock: InoutProtocol, Mock {
}

open func genericInOutClosure<T>(closure: (inout T) -> Void) {
addInvocation(.m_genericInOutClosure__closure_closure(Parameter<(inout T) -> Void>.any))
let perform = methodPerformValue(.m_genericInOutClosure__closure_closure(Parameter<(inout T) -> Void>.any)) as? ((inout T) -> Void) -> Void
addInvocation(.m_genericInOutClosure__closure_closure(Parameter<(inout T) -> Void>.any.wrapAsGeneric()))
let perform = methodPerformValue(.m_genericInOutClosure__closure_closure(Parameter<(inout T) -> Void>.any.wrapAsGeneric())) as? ((inout T) -> Void) -> Void
perform?(`closure`)
}


fileprivate enum MethodType {
case m_passThisAsInOut__value_value(Parameter<URLRequest>)
case m_returnAndInOut__value_value(Parameter<Int>)
case m_genericInOutClosure__closure_closure(Parameter<(inout T) -> Void>)
case m_genericInOutClosure__closure_closure(Parameter<GenericAttribute>)

static func compareParameters(lhs: MethodType, rhs: MethodType, matcher: Matcher) -> Matcher.ComparisonResult {
switch (lhs, rhs) {
Expand Down Expand Up @@ -4968,7 +4968,7 @@ open class InoutProtocolMock: InoutProtocol, Mock {

public static func passThisAsInOut(value: Parameter<URLRequest>) -> Verify { return Verify(method: .m_passThisAsInOut__value_value(`value`))}
public static func returnAndInOut(value: Parameter<Int>) -> Verify { return Verify(method: .m_returnAndInOut__value_value(`value`))}
public static func genericInOutClosure(closure: Parameter<(inout T) -> Void>) -> Verify { return Verify(method: .m_genericInOutClosure__closure_closure(`closure`))}
public static func genericInOutClosure<T>(closure: Parameter<(inout T) -> Void>) -> Verify { return Verify(method: .m_genericInOutClosure__closure_closure(`closure`.wrapAsGeneric()))}
}

public struct Perform {
Expand All @@ -4981,8 +4981,8 @@ open class InoutProtocolMock: InoutProtocol, Mock {
public static func returnAndInOut(value: Parameter<Int>, perform: @escaping (inout Int) -> Void) -> Perform {
return Perform(method: .m_returnAndInOut__value_value(`value`), performs: perform)
}
public static func genericInOutClosure(closure: Parameter<(inout T) -> Void>, perform: @escaping ((inout T) -> Void) -> Void) -> Perform {
return Perform(method: .m_genericInOutClosure__closure_closure(`closure`), performs: perform)
public static func genericInOutClosure<T>(closure: Parameter<(inout T) -> Void>, perform: @escaping ((inout T) -> Void) -> Void) -> Perform {
return Perform(method: .m_genericInOutClosure__closure_closure(`closure`.wrapAsGeneric()), performs: perform)
}
}

Expand Down

0 comments on commit e31ae95

Please sign in to comment.