Skip to content

incorrect namespace of global variable type #587

Open

Description

@ladisgin

To Reproduce
Steps to reproduce the behavior:

  1. Open the JQ project in IDE
  2. Use plugin to generate tests
  3. Run the generated test

Expected behavior
Tests are supposed to compiled.

Actual behavior
compilation error

Visual proofs (screenshots, logs)

/home/utbot/jq/tests/makefiles/src/../../../tests/src/builtin_dot_c_test.cpp:9:1: error: unknown type name 'OnigEncodingTypeST'; did you mean 'UTBot::OnigEncodingTypeST'?
OnigEncodingTypeST OnigEncodingUTF8;
^~~~~~~~~~~~~~~~~~
UTBot::OnigEncodingTypeST
/home/utbot/jq/tests/makefiles/src/../../../tests/src/builtin_dot_c_test.h:531:8: note: 'UTBot::OnigEncodingTypeST' declared here
struct OnigEncodingTypeST {
       ^
/home/utbot/jq/tests/makefiles/src/../../../tests/src/builtin_dot_c_test.cpp:10:1: error: unknown type name 'OnigSyntaxType'; did you mean 'UTBot::OnigSyntaxType'?
OnigSyntaxType OnigSyntaxPerl_NG;
^~~~~~~~~~~~~~
UTBot::OnigSyntaxType

Additional context
Use types from UTBot Namespace

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions