Unit Tests

- Improved signal to noise ratio for op_*.t tests.
- Updated ANALYSIS file.
This commit is contained in:
Paul Beckingham 2011-09-10 13:27:14 -04:00
parent 1994240899
commit d9fa6fbac8
8 changed files with 56 additions and 129 deletions

View file

@ -28,7 +28,7 @@
use strict;
use warnings;
use Test::More tests => 15;
use Test::More tests => 10;
# Create the rc file.
if (open my $fh, '>', 'op.rc')
@ -59,23 +59,13 @@ like ($output, qr/three/, 'ls description >= t --> three');
unlike ($output, qr/four/, 'ls description >= t --> !four');
# Cleanup.
unlink 'pending.data';
ok (!-r 'pending.data', 'Removed pending.data');
unlink 'completed.data';
ok (!-r 'completed.data', 'Removed completed.data');
unlink 'undo.data';
ok (!-r 'undo.data', 'Removed undo.data');
unlink 'backlog.data';
ok (!-r 'backlog.data', 'Removed backlog.data');
unlink 'synch.key';
ok (!-r 'synch.key', 'Removed synch.key');
unlink 'op.rc';
ok (!-r 'op.rc', 'Removed op.rc');
unlink qw(pending.data completed.data undo.data backlog.data synch.key op.rc);
ok (! -r 'pending.data' &&
! -r 'completed.data' &&
! -r 'undo.data' &&
! -r 'backlog.data' &&
! -r 'synch.key' &&
! -r 'op.rc', 'Cleanup');
exit 0;