| 1 | package Test::Smoke::App::Reporter; | ||
| 2 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | 2 | our $VERSION = '0.001'; | |
| 6 | |||
| 7 | 2 | ▶ | use base 'Test::Smoke::App::Base'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | 2 | ▶ | use Test::Smoke::Reporter; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 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 | 2 | ▶ | sub new { |
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
documented
| |||
| 24 | 2 | my $class = shift; | |
| 25 | 2 | my $self = $class->SUPER::new(@_); | |
| 26 | |||
| 27 | 2 | $self->{_reporter} = Test::Smoke::Reporter->new( | |
| 28 | $self->options, | ||
| 29 | v => $self->option('verbose'), | ||
| 30 | ); | ||
| 31 | |||
| 32 | 2 | return $self; | |
| 33 | } | ||
| 34 | |||
| 35 | =head2 $reporter->run() | ||
| 36 | |||
| 37 | Write the rpt_file and jsn_file. | ||
| 38 | |||
| 39 | =cut | ||
| 40 | |||
| 41 | 1 | ▶ | sub run { |
|
Subroutine
run: called CC=1 SCAR=0.0
| |||
| 42 | 1 | my $self = shift; | |
| 43 | |||
| 44 | 1 | $self->log_debug("[Reporter] write_to_file()"); | |
| 45 | 1 | $self->reporter->write_to_file(); | |
| 46 | |||
| 47 | 1 | $self->log_debug("[Reporter] smokedb_data()"); | |
| 48 | 1 | $self->reporter->smokedb_data(); | |
| 49 | |||
| 50 | 1 | return 1; | |
| 51 | } | ||
| 52 | |||
| 53 | 2 | 1; | |
| 54 | |||
| 55 | =head1 COPYRIGHT | ||
| 56 | |||
| 57 | (c) 2013, Abe Timmerman <abeltje@cpan.org> 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<http://www.perl.com/perl/misc/Artistic.html> | ||
| 71 | |||
| 72 | =item * L<http://www.gnu.org/copyleft/gpl.html> | ||
| 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 | ||