/[pxelator]/lib/PXElator/t/progress_bar.t
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /lib/PXElator/t/progress_bar.t

Parent Directory Parent Directory | Revision Log Revision Log


Revision 115 - (show annotations)
Sun Aug 2 12:09:02 2009 UTC (14 years, 8 months ago) by dpavlin
File MIME type: application/x-troff
File size: 329 byte(s)
implement common (and correct) progress_bar for tftpd and httpd

1 #!/usr/bin/perl
2
3 use warnings;
4 use strict;
5 use autodie;
6
7 use Test::More tests => 4;
8
9 use_ok 'progress_bar';
10
11 ok( progress_bar::start(), 'start' );
12 ok( ! progress_bar::tick( 'file', 0, 0 ), 'no tick' );
13 my $pos = 0;
14 while ( ! progress_bar::tick( 'file', $pos++, 42 ) ) { print STDERR "."; sleep 1 };
15 ok( $pos > 0, 'got tick' );

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26