Skip to content

Allow for multiple child(..., get_if_exists: true) in a single :spec action. #983

@varsill

Description

@varsill

Currently, the following :spec action would fail:

[child(:source, Source, get_if_exists: true), child(:source, Source, get_if_exists: true) |> child(:sink, Sink)]

due to "duplicated children names in spec" error.
There is nothing that prevents us from handling this spec correctly unless the child definition (module or a struct) differs among child(..., get_if_exists: true) function invocations.
It could simplify writing specs in cases where some of the spec branches which originate in the same output pads component are spawned conditionally.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions