line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#!perl |
2
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
32
|
use strict; |
|
2
|
|
|
1
|
|
6
|
|
|
2
|
|
|
|
|
66
|
|
|
1
|
|
|
|
|
18
|
|
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
25
|
|
4
|
2
|
|
|
2
|
|
12
|
use warnings; |
|
2
|
|
|
1
|
|
5
|
|
|
2
|
|
|
|
|
51
|
|
|
1
|
|
|
|
|
5
|
|
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
27
|
|
5
|
|
|
|
|
|
|
|
6
|
2
|
|
|
2
|
|
686
|
use Digest; |
|
2
|
|
|
1
|
|
610
|
|
|
2
|
|
|
|
|
50
|
|
|
1
|
|
|
|
|
5
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
19
|
|
7
|
2
|
|
|
2
|
|
13
|
use Test::More; |
|
2
|
|
|
1
|
|
5
|
|
|
2
|
|
|
|
|
18
|
|
|
1
|
|
|
|
|
5
|
|
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
6
|
|
8
|
2
|
|
|
2
|
|
571
|
use Test::BDD::Cucumber::StepFile; |
|
2
|
|
|
1
|
|
9
|
|
|
2
|
|
|
|
|
3293
|
|
|
1
|
|
|
|
|
243
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
1523
|
|
9
|
|
|
|
|
|
|
|
10
|
1
|
|
|
1
|
|
256
|
Given qr/a usable "(\w+)" class/, sub { use_ok( C->matches->[0] ); }; |
|
1
|
|
|
1
|
|
3
|
|
|
1
|
|
|
1
|
|
2
|
|
|
1
|
|
|
1
|
|
28
|
|
|
1
|
|
|
1
|
|
272
|
|
|
1
|
|
|
1
|
|
3
|
|
|
1
|
|
|
1
|
|
2
|
|
|
1
|
|
|
1
|
|
21
|
|
|
1
|
|
|
1
|
|
558
|
|
|
1
|
|
|
1
|
|
5
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
14
|
|
|
1
|
|
|
|
|
208
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
13
|
|
|
1
|
|
|
|
|
202
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
6
|
|
|
1
|
|
|
|
|
14
|
|
|
1
|
|
|
|
|
253
|
|
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
13
|
|
|
1
|
|
|
|
|
210
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
14
|
|
|
1
|
|
|
|
|
225
|
|
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
14
|
|
|
1
|
|
|
|
|
209
|
|
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
14
|
|
|
1
|
|
|
|
|
206
|
|
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
14
|
|
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
|
|
|
|
|
|
|
}; |