メインコンテンツ

ライブラリの不適切な使用の欠陥

Polyspace® Test™ xUnit ベースの API などのライブラリの誤った使用に関連付けられた欠陥

これらの欠陥は、ライブラリ関数の使用がライブラリの仕様に違反するときに発生します。この欠陥チェッカーのグループは現在、Polyspace Test xUnit ベースの API という、1 つのライブラリを対象としています。詳細については、Test Authoring Using C/C++ xUnit API (Polyspace Test)を参照してください。

Polyspace 結果

テストのセットアップまたは破棄の API の誤った使用Test setup invoked in test suite configuration, suite setup invoked in test configuration, and so on (R2023b 以降)
テスト フィクスチャの誤った使用Test fixture accessed in suite-test setup/teardown, suite-test fixture accessed in suite setup/teardown (R2023b 以降)
モッキング API の誤った使用Mock function accessed outside test body, and so on (R2023b 以降)
誤ったテストの登録または定義Test or test suite not defined, test not registered, and so on (R2023b 以降)
サポートされていない構文がテスト オーサリング API とともに使用されましたHigher order calls in test or test suite configuration, and so on (R2023b 以降)