line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#!perl |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
9
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
31
|
|
4
|
1
|
|
|
1
|
|
6
|
use warnings; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
25
|
|
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
571
|
use Digest; |
|
1
|
|
|
|
|
603
|
|
|
1
|
|
|
|
|
31
|
|
7
|
1
|
|
|
1
|
|
8
|
use Test::More; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
21
|
|
8
|
|
|
|
|
|
|
|
9
|
1
|
|
|
1
|
|
305
|
use Test::BDD::Cucumber::StepFile; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
1732
|
|
10
|
|
|
|
|
|
|
|
11
|
1
|
|
|
1
|
|
280
|
Given qr/a usable "(\w+)" class/, sub { use_ok( C->matches->[0] ); }; |
|
1
|
|
|
1
|
|
2
|
|
|
1
|
|
|
1
|
|
2
|
|
|
1
|
|
|
1
|
|
19
|
|
|
1
|
|
|
1
|
|
216
|
|
|
1
|
|
|
1
|
|
3
|
|
|
1
|
|
|
1
|
|
2
|
|
|
1
|
|
|
1
|
|
15
|
|
|
1
|
|
|
1
|
|
263
|
|
|
1
|
|
|
1
|
|
3
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
16
|
|
|
1
|
|
|
|
|
211
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
17
|
|
|
1
|
|
|
|
|
213
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
15
|
|
|
1
|
|
|
|
|
245
|
|
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
16
|
|
|
1
|
|
|
|
|
245
|
|
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
18
|
|
|
1
|
|
|
|
|
251
|
|
|
1
|
|
|
|
|
5
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
23
|
|
|
1
|
|
|
|
|
230
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
20
|
|
|
1
|
|
|
|
|
227
|
|
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
8
|
|
|
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
|
|
|
|
|
|
|
}; |