Skip to content

Have an integration test able to test when location fails #90

@cmoulliard

Description

@cmoulliard

If you are throwing an error, could we have a test checking it?

This is an integration test in this case as it implies that from the when/condition, we parse the string using antlr parser to get a Query and next verify it there is a mapping from symbol to search = dependency to the language server list of the locations supported which is happening here within the code

    public List<SymbolInformation> executeQueryCommand(Config config, Rule rule, Query q) {
        String location = getLocationCode(q.symbol()); // We got a value = 0 when there is no concordance

As the module integration-tests or tests don't yet exist, I suggest to defer such a development in a next iteration and PR
WDYT ? @aureamunoz

Originally posted by @cmoulliard in #86 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions