Main Content
Libraries Misuse Defects
Defects associated with incorrect usage of a library such as the Polyspace®
Test™ xUnit-based API
These defects occur when your use of a library function violates the specifications of the library. This group of defect checkers currently covers one library, the Polyspace Test xUnit-based API. For more information, see Test Authoring Using C/C++ xUnit API (Polyspace Test).
Polyspace Results
Incorrect use of test setup/teardown API | Test setup invoked in test suite configuration, suite setup invoked in test configuration, and so on (Since R2023b) |
Incorrect use of test fixtures | Test fixture accessed in suite-test setup/teardown, suite-test fixture accessed in suite setup/teardown (Since R2023b) |
Incorrect use of mocking API | Mock function accessed outside test body, and so on (Since R2023b) |
Incorrect test registration or definition | Test or test suite not defined, test not registered, and so on (Since R2023b) |
Unsupported syntax used with test authoring API | Higher order calls in test or test suite configuration, and so on (Since R2023b) |