Skip to content

Function attributes are not added to generated methods #364

@rogowski-smart

Description

@rogowski-smart

Mock for protocol show below will not have closure attributes as specified in function signature.

public protocol Provider {
    func open(_ url: URL, completionHandler completion: (@MainActor @Sendable (Bool) -> Void)?)

Generated code:

open func open(_ url: URL, completionHandler completion: ((Bool) -> Void)?) { ... }

SwiftyMocky: 4.2.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions