ファンクションカバレッジ (Function Coverage) - CI/CD用語集の定義
ファンクションカバレッジは、定義されたすべての関数のうち、テスト中に呼び出された関数の数を数えます。
ファンクションカバレッジ (Function Coverage) は、テストスイート中に少なくとも一度呼び出された、定義された関数またはメソッドの割合です。どのテストも呼び出さない関数まるごとを明らかにします。
低いファンクションカバレッジは、実行される行が十分にカバーされていても、まるごとの振る舞いの単位がテストされていないという早期の警告です。
なぜ重要か
どのテストからも一度も呼ばれない関数は、カバレッジレポートの中で無駄な重りです。ファンクションカバレッジは、それらが本当のバグを隠す前に浮かび上がらせます。
関連ガイド
Statement Coverage - CI/CD Glossary DefinitionStatement Coverage: Statement coverage is the percentage of individual statements in the code that were execu…
Line Coverage - CI/CD Glossary DefinitionLine Coverage: Line coverage is the fraction of executable source lines that ran at least once during the tes…
Test Coverage - CI/CD Glossary DefinitionTest Coverage: Test coverage is the percentage of your code (lines, branches, or functions) that is executed…