line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Test::Smoke::App::Reporter; |
2
|
2
|
|
|
2
|
|
408
|
use warnings; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
65
|
|
3
|
2
|
|
|
2
|
|
11
|
use strict; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
63
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
our $VERSION = '0.001'; |
6
|
|
|
|
|
|
|
|
7
|
2
|
|
|
2
|
|
10
|
use base 'Test::Smoke::App::Base'; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
507
|
|
8
|
|
|
|
|
|
|
|
9
|
2
|
|
|
2
|
|
866
|
use Test::Smoke::Reporter; |
|
2
|
|
|
|
|
6
|
|
|
2
|
|
|
|
|
265
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
=head1 NAME |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
Test::Smoke::App::Reporter - The tsreport.pl application. |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
=head1 DESCRIPTION |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
=head2 Test::Smoke::App::Reporter->new() |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
Return an instance. |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
=cut |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
sub new { |
24
|
2
|
|
|
2
|
1
|
19
|
my $class = shift; |
25
|
2
|
|
|
|
|
60
|
my $self = $class->SUPER::new(@_); |
26
|
|
|
|
|
|
|
|
27
|
2
|
|
|
|
|
17
|
$self->{_reporter} = Test::Smoke::Reporter->new( |
28
|
|
|
|
|
|
|
$self->options, |
29
|
|
|
|
|
|
|
v => $self->option('verbose'), |
30
|
|
|
|
|
|
|
); |
31
|
|
|
|
|
|
|
|
32
|
2
|
|
|
|
|
19
|
return $self; |
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=head2 $reporter->run() |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
Write the rpt_file and jsn_file. |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=cut |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
sub run { |
42
|
1
|
|
|
1
|
|
2424
|
my $self = shift; |
43
|
|
|
|
|
|
|
|
44
|
1
|
|
|
|
|
82
|
$self->log_debug("[Reporter] write_to_file()"); |
45
|
1
|
|
|
|
|
8
|
$self->reporter->write_to_file(); |
46
|
|
|
|
|
|
|
|
47
|
1
|
|
|
|
|
5
|
$self->log_debug("[Reporter] smokedb_data()"); |
48
|
1
|
|
|
|
|
5
|
$self->reporter->smokedb_data(); |
49
|
|
|
|
|
|
|
|
50
|
1
|
|
|
|
|
2
|
return 1; |
51
|
|
|
|
|
|
|
} |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
1; |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=head1 COPYRIGHT |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
(c) 2013, Abe Timmerman All rights reserved. |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
With contributions from Jarkko Hietaniemi, Merijn Brand, Campo |
60
|
|
|
|
|
|
|
Weijerman, Alan Burlison, Allen Smith, Alain Barbet, Dominic Dunlop, |
61
|
|
|
|
|
|
|
Rich Rauenzahn, David Cantrell. |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or modify |
64
|
|
|
|
|
|
|
it under the same terms as Perl itself. |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
See: |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
=over 4 |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
=item * L |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
=item * L |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
=back |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful, |
77
|
|
|
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of |
78
|
|
|
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
=cut |