UTBotCpp icon indicating copy to clipboard operation
UTBotCpp copied to clipboard

incorrect namespace of global variable type

Open ladisgin opened this issue 2 years ago • 0 comments

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

ladisgin avatar Feb 20 '23 14:02 ladisgin