Bug 11537: Increasing test coverage for C4::Log

To test:
1. run prove t/Log.t
   Notice 1 test is run
2. apply patch
3. run prove t/Log.t
   Notice 3 tests are run

Signed-off-by: David Cook <dcook@prosentient.com.au>

Works as described.

I think there might be a typo in "Testing git log status". Should
this read "Testing get log status"? (Noticed while looking at the
code/running perl t/Log.t.)

In any case, thanks for the patch. Looks good!

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>

Fixed typo, thanks David

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Works as described:
1..3
ok 1 - use C4::Log;
ok 2 - Testing GetLogStatus
ok 3 - Testing hash is non empty

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
This commit is contained in:
alex_h 2014-01-14 11:52:04 +13:00 committed by Galen Charlton
parent 5c3f36279b
commit 5ebca4f340
1 changed files with 4 additions and 1 deletions

View File

@ -6,9 +6,12 @@
use strict;
use warnings;
use Test::More tests => 1;
use Test::More tests => 3;
BEGIN {
use_ok('C4::Log');
}
ok( my $hash=GetLogStatus(),"Testing GetLogStatus");
ok( $hash->{BorrowersLog}, 'Testing hash is non empty');