UTBotCpp icon indicating copy to clipboard operation
UTBotCpp copied to clipboard

Class method is skipped in UTBot Online

Open operasfantom opened this issue 3 years ago • 0 comments

Steps to reproduce:

  1. Open UTBot Online
  2. Choose C++ language
  3. Paste the following code
#include <iostream>
#include <cmath>
#include <cstring>

using namespace std;

class A {
  public:
  int method() {
    return 0;
  }
};

int foo() 
{
  // TODO: write your code here
  return 0;
}
  1. See generated tests
...
namespace UTBot {
static const float utbot_abs_error = 1e-6;
// Function 'method' was skipped, as inline function without static or extern modifier is not supported by now



#pragma region regression
TEST(regression, foo_test_1)
{
    int actual = foo();
    EXPECT_EQ(0, actual);
}

#pragma endregion
}

Expected behaviour

Tests for class method are generated successfully as it is supported in UTBotCpp

operasfantom avatar Jun 07 '22 16:06 operasfantom