line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#!perl |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
10
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
34
|
|
4
|
1
|
|
|
1
|
|
7
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
28
|
|
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
479
|
use Digest; |
|
1
|
|
|
|
|
596
|
|
|
1
|
|
|
|
|
33
|
|
7
|
1
|
|
|
1
|
|
7
|
use Test::More; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
13
|
|
8
|
|
|
|
|
|
|
|
9
|
1
|
|
|
1
|
|
311
|
use Test::BDD::Cucumber::StepFile; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
1675
|
|
10
|
|
|
|
|
|
|
|
11
|
1
|
|
|
1
|
|
228
|
Given qr/a usable "(\w+)" class/, sub { use_ok( C->matches->[0] ); }; |
|
1
|
|
|
1
|
|
2
|
|
|
1
|
|
|
1
|
|
2
|
|
|
1
|
|
|
1
|
|
16
|
|
|
1
|
|
|
1
|
|
211
|
|
|
1
|
|
|
1
|
|
2
|
|
|
1
|
|
|
1
|
|
2
|
|
|
1
|
|
|
1
|
|
30
|
|
|
1
|
|
|
1
|
|
233
|
|
|
1
|
|
|
1
|
|
3
|
|
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
15
|
|
|
1
|
|
|
|
|
205
|
|
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
14
|
|
|
1
|
|
|
|
|
202
|
|
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
13
|
|
|
1
|
|
|
|
|
223
|
|
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
14
|
|
|
1
|
|
|
|
|
216
|
|
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
15
|
|
|
1
|
|
|
|
|
222
|
|
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
14
|
|
|
1
|
|
|
|
|
225
|
|
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
16
|
|
|
1
|
|
|
|
|
234
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
15
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
Given qr/a Digest (\S+) object/, sub { |
14
|
|
|
|
|
|
|
my $object = Digest->new( C->matches->[0] ); |
15
|
|
|
|
|
|
|
ok( $object, "Object created" ); |
16
|
|
|
|
|
|
|
S->{'object'} = $object; |
17
|
|
|
|
|
|
|
}; |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
When qr/I've added "(.+)" to the object/, sub { |
20
|
|
|
|
|
|
|
S->{'object'}->add( C->matches->[0] ); |
21
|
|
|
|
|
|
|
}; |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
When "I've added the following to the object", sub { |
24
|
|
|
|
|
|
|
S->{'object'}->add( C->data ); |
25
|
|
|
|
|
|
|
}; |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
Then qr/the (.+) output is "(.+)"/, sub { |
28
|
|
|
|
|
|
|
my ( $type, $expected ) = @{ C->matches }; |
29
|
|
|
|
|
|
|
my $method = { |
30
|
|
|
|
|
|
|
'base64' => 'b64digest', |
31
|
|
|
|
|
|
|
'hex' => 'hexdigest' |
32
|
|
|
|
|
|
|
}->{$type}; |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
is( S->{'object'}->$method, $expected ); |
35
|
|
|
|
|
|
|
}; |