Skip to content

How to test generic methods that returns closure? #86

@leandrosilvaeveris

Description

@leandrosilvaeveris

How could I test this method:

func get<T>(_ url: String, success: @escaping ((_ response: T?) -> Void), failure: @escaping ((_ errorMessage: String) -> Void)) where T: BaseMappable

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions