Prev Testing and Code Coverage Next

Path coverage

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


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