Skip to content

Generate tests for class without constructor from all fields #65

Open
@ladisgin

Description

@ladisgin
Member

In current realization we use constructor from initializer list for tests

Point p = {0, 0};

And default constructor for *_klee.cpp files

Point p;

it's work in class that has constructor from all fields like

class point {
     int x;
     int y;
     point(int x, int y) : x(x), y(y) {}
};

but some class hasn't this constructors, or hasn't any constructor

class point {
    int x;
    int y;
    double dist;
    point() = delete;
    point(int x, int y) : x(x), y(y) {
        dist = sqrt(x*x + y*y);
    }
};

Activity

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

    cpp-syntaxRelated to generation tests for C++enhancementNew feature or request

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @ladisgin

        Issue actions

          Generate tests for class without constructor from all fields · Issue #65 · UnitTestBot/UTBotCpp