You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using a Type with a Tuple as a generic, Cuckoo just aborts the generating of this definition. Instead of writing the fitting specified Tuple after < it just continues with the next step.
This results in compilation errors.
Here an example with different generic types. xSubject works.
Input:
var ySubject = PassthroughSubject<(err: Error, lastValue: Int?), Never>()
var xSubject = PassthroughSubject<Error, Never>()
var zResult = Result<(Int, Error?), Never>(catching: { return (0, nil) })
Output:
MockX {
override var ySubject: PassthroughSubject< {
[...]
override var xSubject: PassthroughSubject<Error, Never> {
[...]
override var zResult: Result< {
[...]
}
__StubbingProxy_X {
var ySubject: Cuckoo.ClassToBeStubbedProperty<MockLocationLogger,PassthroughSubject<> {
[...]
var xSubject: Cuckoo.ClassToBeStubbedProperty<MockLocationLogger,PassthroughSubject<Error, Never>> {
[...]
var zResult: Cuckoo.ClassToBeStubbedProperty<MockLocationLogger,Result<> {
[...]
}
__VerificationProxy_X {
var ySubject: Cuckoo.VerifyProperty<PassthroughSubject<> {
[...]
var xSubject: Cuckoo.VerifyProperty<PassthroughSubject<Error, Never>> {
[...]
var zResult: Cuckoo.VerifyProperty<Result<> {
[...]
}
If the tuple is previously defined with a typealias the generation works fine.
The text was updated successfully, but these errors were encountered:
When using a Type with a Tuple as a generic, Cuckoo just aborts the generating of this definition. Instead of writing the fitting specified Tuple after
<
it just continues with the next step.This results in compilation errors.
Here an example with different generic types.
xSubject
works.Input:
Output:
If the tuple is previously defined with a
typealias
the generation works fine.The text was updated successfully, but these errors were encountered: