line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#!/usr/bin/perl |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
package Test::TAP::Model::Subtest::Visual; |
4
|
9
|
|
|
9
|
|
23365
|
use base qw/Test::TAP::Model::Subtest/; |
|
9
|
|
|
|
|
15
|
|
|
9
|
|
|
|
|
2115
|
|
5
|
|
|
|
|
|
|
|
6
|
9
|
|
|
9
|
|
4131
|
use strict; |
|
9
|
|
|
|
|
18
|
|
|
9
|
|
|
|
|
550
|
|
7
|
9
|
|
|
9
|
|
44
|
use warnings; |
|
9
|
|
|
|
|
11
|
|
|
9
|
|
|
|
|
402
|
|
8
|
|
|
|
|
|
|
|
9
|
9
|
|
|
9
|
|
9239
|
use URI; |
|
9
|
|
|
|
|
47498
|
|
|
9
|
|
|
|
|
271
|
|
10
|
9
|
|
|
9
|
|
8921
|
use URI::file; |
|
9
|
|
|
|
|
69159
|
|
|
9
|
|
|
|
|
2381
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub css_class { |
13
|
26
|
|
|
26
|
1
|
10212
|
my $self = shift; |
14
|
26
|
100
|
|
|
|
272
|
return "x sk" if $self->skipped; |
15
|
|
|
|
|
|
|
|
16
|
22
|
|
|
|
|
531
|
my $todo = $self->todo; |
17
|
|
|
|
|
|
|
|
18
|
22
|
100
|
|
|
|
202
|
"x " . |
|
|
100
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
19
|
|
|
|
|
|
|
($self->actual_ok |
20
|
|
|
|
|
|
|
? ( $todo ? "u" : "p" ) |
21
|
|
|
|
|
|
|
: ( $todo ? "t" : "f" )) |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub popup { |
25
|
26
|
|
|
26
|
1
|
7038
|
my $self = shift; |
26
|
26
|
|
|
|
|
108
|
my $text = join("\n", $self->line, $self->diag); |
27
|
|
|
|
|
|
|
|
28
|
26
|
100
|
|
|
|
888
|
{ chomp $text and redo }; |
|
52
|
|
|
|
|
159
|
|
29
|
|
|
|
|
|
|
|
30
|
26
|
|
|
|
|
88
|
$text; |
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
sub link { |
34
|
30
|
|
|
30
|
1
|
5129
|
my $self = shift; |
35
|
30
|
|
|
|
|
118
|
my $file = $self->test_file; |
36
|
30
|
100
|
|
|
|
533
|
return URI->new("#") unless $file; |
37
|
|
|
|
|
|
|
|
38
|
4
|
|
|
|
|
16
|
my $uri = URI::file->new($file); |
39
|
4
|
|
33
|
|
|
373
|
$_ and $uri->fragment("line_$_") for $self->test_line; |
40
|
|
|
|
|
|
|
|
41
|
4
|
|
|
|
|
193
|
return $uri; |
42
|
|
|
|
|
|
|
} |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
__PACKAGE__ |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
__END__ |