line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#!perl |
2
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
26
|
use strict; |
|
2
|
|
|
1
|
|
6
|
|
|
2
|
|
|
|
|
69
|
|
|
1
|
|
|
|
|
17
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
27
|
|
4
|
2
|
|
|
2
|
|
12
|
use warnings; |
|
2
|
|
|
1
|
|
17
|
|
|
2
|
|
|
|
|
56
|
|
|
1
|
|
|
|
|
6
|
|
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
32
|
|
5
|
|
|
|
|
|
|
|
6
|
2
|
|
|
2
|
|
638
|
use Digest; |
|
2
|
|
|
1
|
|
660
|
|
|
2
|
|
|
|
|
60
|
|
|
1
|
|
|
|
|
6
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
21
|
|
7
|
2
|
|
|
2
|
|
21
|
use Test::More; |
|
2
|
|
|
1
|
|
5
|
|
|
2
|
|
|
|
|
23
|
|
|
1
|
|
|
|
|
10
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
9
|
|
8
|
2
|
|
|
2
|
|
600
|
use Test::BDD::Cucumber::StepFile; |
|
2
|
|
|
1
|
|
4
|
|
|
2
|
|
|
|
|
3433
|
|
|
1
|
|
|
|
|
322
|
|
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
1628
|
|
9
|
|
|
|
|
|
|
|
10
|
1
|
|
|
1
|
|
324
|
Given qr/a usable "(\w+)" class/, sub { use_ok( C->matches->[0] ); }; |
|
1
|
|
|
1
|
|
4
|
|
|
1
|
|
|
1
|
|
3
|
|
|
1
|
|
|
1
|
|
18
|
|
|
1
|
|
|
1
|
|
286
|
|
|
1
|
|
|
1
|
|
3
|
|
|
1
|
|
|
1
|
|
2
|
|
|
1
|
|
|
1
|
|
17
|
|
|
1
|
|
|
1
|
|
202
|
|
|
1
|
|
|
1
|
|
3
|
|
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
14
|
|
|
1
|
|
|
|
|
230
|
|
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
13
|
|
|
1
|
|
|
|
|
260
|
|
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
18
|
|
|
1
|
|
|
|
|
255
|
|
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
18
|
|
|
1
|
|
|
|
|
254
|
|
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
15
|
|
|
1
|
|
|
|
|
276
|
|
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
14
|
|
|
1
|
|
|
|
|
254
|
|
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
13
|
|
|
1
|
|
|
|
|
252
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
16
|
|
11
|
|
|
|
|
|
|
Given qr/a Digest (\S+) object/, sub { |
12
|
|
|
|
|
|
|
my $object = Digest->new( C->matches->[0] ); |
13
|
|
|
|
|
|
|
ok( $object, "Object created" ); |
14
|
|
|
|
|
|
|
S->{'object'} = $object; |
15
|
|
|
|
|
|
|
}; |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
When qr/I've added "(.+)" to the object/, sub { |
18
|
|
|
|
|
|
|
S->{'object'}->add( C->matches->[0] ); |
19
|
|
|
|
|
|
|
}; |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
When "I've added the following to the object", sub { |
22
|
|
|
|
|
|
|
S->{'object'}->add( C->data ); |
23
|
|
|
|
|
|
|
}; |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
Then qr/the (.+) output is "(.+)"/, sub { |
26
|
|
|
|
|
|
|
my ( $type, $expected ) = @{ C->matches }; |
27
|
|
|
|
|
|
|
my $method = { |
28
|
|
|
|
|
|
|
'base64' => 'b64digest', |
29
|
|
|
|
|
|
|
'hex' => 'hexdigest' |
30
|
|
|
|
|
|
|
}->{$type}; |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
is( S->{'object'}->$method, $expected ); |
33
|
|
|
|
|
|
|
}; |