| Prev | Code Coverage - Tales From the Trenches | Next | 
A statement is covered if it is executed
Statement != line of code
Sequences of statements
Weakest form of coverage
Still not easy to get 100% statement coverage
Error conditions, rarely occurring events
        if ($param > 20)
        {
            die "This should never happen!";
        }
Nice to mark code that shouldn't be executed
continued...
| Slide 5 | YAPC::Europe::2003 | Copyright © 2003 Paul Johnson |