Skip to content

Generate tests for class without constructor from all fields #65

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ladisgin opened this issue Feb 2, 2022 · 0 comments
Open

Generate tests for class without constructor from all fields #65

ladisgin opened this issue Feb 2, 2022 · 0 comments
Labels
cpp-syntax Related to generation tests for C++ enhancement New feature or request

Comments

@ladisgin
Copy link
Member

ladisgin commented Feb 2, 2022

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);
    }
};
@ladisgin ladisgin added enhancement New feature or request cpp-syntax Related to generation tests for C++ labels Feb 2, 2022
@ladisgin ladisgin moved this to Todo in UTBot C/C++ Apr 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cpp-syntax Related to generation tests for C++ enhancement New feature or request
Projects
Status: Todo
Development

No branches or pull requests

1 participant