Skip to content
Latchkey

Function Coverage - CI/CD Glossary Definition

Function coverage counts how many functions were called during tests out of all functions defined.

Function coverage is the percentage of defined functions or methods that were called at least once during the test suite. It reveals entire functions that no test ever invokes.

Low function coverage is an early warning that whole units of behavior are untested, even if the lines that do run are well covered.

Why it matters

A function never called by any test is dead weight in the coverage report. Function coverage surfaces these before they hide real bugs.

Related guides

Run this faster and cheaper on Latchkey managed runners. Start free →