line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#!/usr/bin/perl |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
package ChainMake::Tester; |
4
|
|
|
|
|
|
|
|
5
|
4
|
|
|
4
|
|
342105
|
use Test::More; |
|
4
|
|
|
|
|
13
|
|
|
4
|
|
|
|
|
32
|
|
6
|
4
|
|
|
4
|
|
1269
|
use Exporter 'import'; |
|
4
|
|
|
|
|
8
|
|
|
4
|
|
|
|
|
153
|
|
7
|
4
|
|
|
4
|
|
1659
|
use ChainMake::Functions ':all'; |
|
4
|
|
|
|
|
11
|
|
|
4
|
|
|
|
|
10644
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
our $VERSION = $ChainMake::VERSION; |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
our @EXPORT_OK = qw(have_made my_ok my_nok); |
12
|
|
|
|
|
|
|
our %EXPORT_TAGS = (all => [@EXPORT_OK]); |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
my $made; |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
unlink_timestamps(); |
17
|
|
|
|
|
|
|
|
18
|
82
|
|
|
82
|
0
|
9930
|
sub have_made { $made.=shift } |
19
|
|
|
|
|
|
|
sub my_ok { |
20
|
61
|
|
|
61
|
0
|
193
|
my ($cmd,$result,$comment)=@_; |
21
|
61
|
|
33
|
|
|
372
|
ok( chainmake($cmd) && ($made eq $result), |
22
|
|
|
|
|
|
|
"$comment; make $cmd should '$result', did '$made'" ); |
23
|
61
|
|
|
|
|
46433
|
$made=''; |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
sub my_nok { |
26
|
15
|
|
|
15
|
0
|
44
|
my ($cmd,$result,$comment)=@_; |
27
|
15
|
|
33
|
|
|
66
|
ok( !chainmake($cmd) && ($made eq $result), |
28
|
|
|
|
|
|
|
"$comment; make $cmd should return false and give '$result', did '$made'" ); |
29
|
15
|
|
|
|
|
12316
|
$made=''; |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
1; |