Prev Code Coverage - Tales From the Trenches Next

Hilo example - test 1

     $ perl -MDevel::Cover tests/hilo 2
     Devel::Cover 0.2010: Collecting coverage data for branch, condition, statement and time.
     Selecting packages matching:
     Ignoring packages matching:
     Ignoring packages in:
         .
         /usr/local/pkg/perl-5.8.0/lib/5.8.0
         /usr/local/pkg/perl-5.8.0/lib/5.8.0/sun4-solaris
         /usr/local/pkg/perl-5.8.0/lib/site_perl
         /usr/local/pkg/perl-5.8.0/lib/site_perl/5.8.0
         /usr/local/pkg/perl-5.8.0/lib/site_perl/5.8.0/sun4-solaris
     What is your guess: 2
     Right!
     ------------------------------------------ ------ ------ ------ ------ ------
     File                                         stmt branch   cond   time  total
     ------------------------------------------ ------ ------ ------ ------ ------
     tests/hilo                                  80.00  50.00    n/a 100.00  68.75
     Total                                       80.00  50.00    n/a 100.00  68.75
     ------------------------------------------ ------ ------ ------ ------ ------


Slide 37 YAPC::Europe::2003 Copyright © 2003 Paul Johnson