Prev Code Coverage - Tales From the Trenches Next

Hilo example - test 4

     $ perl -MDevel::Cover tests/hilo
     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: 50
     Too low
     What is your guess: 75
     Too low
     What is your guess: 88
     Too high
     What is your guess: 82
     Too low
     What is your guess: 85
     Too high
     What is your guess: 84
     Right!
     ------------------------------------------ ------ ------ ------ ------ ------
     File                                         stmt branch   cond   time  total
     ------------------------------------------ ------ ------ ------ ------ ------
     tests/hilo                                 100.00 100.00    n/a 100.00 100.00
     Total                                      100.00 100.00    n/a 100.00 100.00
     ------------------------------------------ ------ ------ ------ ------ ------


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