Skip to content

Go-to-definition / Find references for meck calls #124

@robertoaloi

Description

@robertoaloi

Context

ELP has support for go-to-definition and find-references for dynamic calls such as erlang:apply/X or erlang:spawn/X.

meck is a popular mocking library which also takes Erlang MFAs (module-function-arity or module-function-arguments) as parameters.

Problem

While it's possible to navigate and find references for certain dynamic calls, this is not possible for meck.

Solution

ELP already provides a mechanism to support dynamic calls in go-to-definition/find-reference. The details are described here.

Extend the list to support meck APIs which take a MFA as "argument".

Tests can be trivially implemented here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueGood for newcomershelp wantedNot currently a priority, contribution welcome

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions