line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#!perl |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
11
|
use strict; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
34
|
|
4
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
29
|
|
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
518
|
use Digest; |
|
1
|
|
|
|
|
705
|
|
|
1
|
|
|
|
|
32
|
|
7
|
1
|
|
|
1
|
|
7
|
use Test::More; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
24
|
|
8
|
|
|
|
|
|
|
|
9
|
1
|
|
|
1
|
|
359
|
use Test::BDD::Cucumber::StepFile; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
1828
|
|
10
|
|
|
|
|
|
|
|
11
|
1
|
|
|
1
|
|
238
|
Given qr/a usable "(\w+)" class/, sub { use_ok( C->matches->[0] ); }; |
|
1
|
|
|
1
|
|
3
|
|
|
1
|
|
|
1
|
|
4
|
|
|
1
|
|
|
1
|
|
15
|
|
|
1
|
|
|
1
|
|
226
|
|
|
1
|
|
|
1
|
|
3
|
|
|
1
|
|
|
1
|
|
2
|
|
|
1
|
|
|
1
|
|
14
|
|
|
1
|
|
|
1
|
|
292
|
|
|
1
|
|
|
1
|
|
3
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
14
|
|
|
1
|
|
|
|
|
221
|
|
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
62
|
|
|
1
|
|
|
|
|
217
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
13
|
|
|
1
|
|
|
|
|
322
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
26
|
|
|
1
|
|
|
|
|
213
|
|
|
1
|
|
|
|
|
6
|
|
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
15
|
|
|
1
|
|
|
|
|
251
|
|
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
19
|
|
|
1
|
|
|
|
|
214
|
|
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
14
|
|
|
1
|
|
|
|
|
213
|
|
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
14
|
|
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
|
|
|
|
|
|
|
}; |