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
I know that static methods can't be overridden and are unsupported. But when one class func function exists in a class that should be mocked, the generated Mock cannot be compiled anymore, as Cuckoo tries (and fails) to write a mock for this class func.
Mocked class funcs can't really be used, as they would need to be called directly on the Mock-Type, which is probably not available in the tested context. And even if: Then just the mock is being tested and nothing is actually happening.
It should either be marked as unsupported and not result in compilation errors, or the problems can somehow be solved.
Input (e.g.):
public class func isUsingFullAccuracy() -> Bool {
let manager: CLLocationManager = CLLocationManager()
return manager.accuracyAuthorization == .fullAccuracy
}
I know that
static
methods can't be overridden and are unsupported. But when oneclass func
function exists in a class that should be mocked, the generated Mock cannot be compiled anymore, as Cuckoo tries (and fails) to write a mock for this class func.Mocked
class func
s can't really be used, as they would need to be called directly on the Mock-Type, which is probably not available in the tested context. And even if: Then just the mock is being tested and nothing is actually happening.It should either be marked as unsupported and not result in compilation errors, or the problems can somehow be solved.
Input (e.g.):
Output:
Compilation Errors are then:
class
keyword is missingXyz
superclassCall
&defaultCall
, because its aclass func
The text was updated successfully, but these errors were encountered: