Skip to content

Class method is skipped in UTBot Online #269

@operasfantom

Description

@operasfantom

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

Metadata

Metadata

Assignees

Labels

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

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions