Prev Testing and Code Coverage Next

Path coverage

There are classes of errors which branch coverage cannot detect:

        $h = 0;
        if ($x)
        {
            $h = { a => 1 };
        }
        if ($y)
        {
            print $h->{a};
        }


Slide 22 YAPC::Europe::2002 Copyright © 2002 Paul Johnson