Skip to content

UTBotCPP does not support anonymous enums. #577

@kichunya

Description

@kichunya

Description
If project contains such function that returns anonymous enum:

enum {runn, walk} some_enum_function(){
    return runn;
}

There is no possibility to generate tests for such function or run generated tests for another function in this project, cause wrapper contains such lines:

enum (anonymous enum at /home/utbot/UTBotCpp/integration-tests/c-example/lib/structures/enums.c:78:1) some_enum_function_lib_structures_enums_c() {
return some_enum_function();
}

To Reproduce

  1. Add example of function from description into project.
  2. Generate tests for some function.
  3. See that wrapper for function with anonymous enum looks like it shown in description.

Expected behavior
Tests are supposed to be generated and executed.

Actual behavior
Tests failed or did not generated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingc-syntaxRelated to generation tests for Ccpp-syntaxRelated to generation tests for C++

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions