UTBotCpp icon indicating copy to clipboard operation
UTBotCpp copied to clipboard

tests can be generated, but there is no coverage generated when run the test

Open danfudan opened this issue 3 years ago • 1 comments

UTBot is a very promising tool. I expect it help me to find out those difficult product bugs, like memory/buffer related bugs, dead code (unreachable branches), etc. with build 93, I found out some issues for UTBot

  1. CPP-example, tests can be generated for triangle.cpp, but there is no coverage generated when run the test
  2. same issue for C-example. the error message is: There are no covered lines, Maybe some of the test were aborted.

danfudan avatar Mar 07 '22 05:03 danfudan

Add constructor for triangle:

Triangle::Triangle(std::initializer_list<Point_2d> points) {
    std::vector<Point_2d> p(points);
    vertex[0] = p[0];
    vertex[1] = p[1];
    vertex[2] = p[2];
}

antipeon avatar Aug 05 '22 10:08 antipeon