| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package Test::Run::Plugin::ColorFileVerdicts::ColorBase; |
|
2
|
|
|
|
|
|
|
|
|
3
|
3
|
|
|
3
|
|
1783
|
use strict; |
|
|
3
|
|
|
|
|
8
|
|
|
|
3
|
|
|
|
|
92
|
|
|
4
|
3
|
|
|
3
|
|
16
|
use warnings; |
|
|
3
|
|
|
|
|
8
|
|
|
|
3
|
|
|
|
|
543
|
|
|
5
|
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
=head1 NAME |
|
7
|
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
Test::Run::Plugin::ColorFileVerdicts::ColorBase - common functionality |
|
9
|
|
|
|
|
|
|
that deals with the color fields for both the main object and the |
|
10
|
|
|
|
|
|
|
CanonFailedObj. |
|
11
|
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
=head1 DESCRIPTION |
|
13
|
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
For internal use. |
|
15
|
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
=cut |
|
17
|
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub _get_individual_test_file_verdict_user_set_color |
|
19
|
|
|
|
|
|
|
{ |
|
20
|
11
|
|
|
11
|
|
47
|
my ($self, $event) = @_; |
|
21
|
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
return $self->individual_test_file_verdict_colors() ? |
|
23
|
11
|
100
|
|
|
|
570
|
$self->individual_test_file_verdict_colors()->{$event} : |
|
24
|
|
|
|
|
|
|
undef; |
|
25
|
|
|
|
|
|
|
} |
|
26
|
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
sub _get_individual_test_file_color |
|
28
|
|
|
|
|
|
|
{ |
|
29
|
11
|
|
|
11
|
|
67
|
my ($self, $event) = @_; |
|
30
|
|
|
|
|
|
|
|
|
31
|
11
|
|
66
|
|
|
80
|
return $self->_get_individual_test_file_verdict_user_set_color($event) |
|
32
|
|
|
|
|
|
|
|| $self->_get_default_individual_test_file_verdict_color($event); |
|
33
|
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
} |
|
35
|
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
sub _get_default_individual_test_file_verdict_color |
|
37
|
|
|
|
|
|
|
{ |
|
38
|
4
|
|
|
4
|
|
23
|
my ($self, $event) = @_; |
|
39
|
|
|
|
|
|
|
|
|
40
|
4
|
|
|
|
|
56
|
my %mapping = |
|
41
|
|
|
|
|
|
|
( |
|
42
|
|
|
|
|
|
|
"success" => "green", |
|
43
|
|
|
|
|
|
|
"failure" => "red", |
|
44
|
|
|
|
|
|
|
"dubious" => "red", |
|
45
|
|
|
|
|
|
|
); |
|
46
|
4
|
|
|
|
|
39
|
return $mapping{$event}; |
|
47
|
|
|
|
|
|
|
} |
|
48
|
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=head1 AUTHOR |
|
51
|
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
Shlomi Fish, C<< <shlomif at cpan.org> >> |
|
53
|
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=head1 BUGS |
|
55
|
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
Please report any bugs or feature requests to |
|
57
|
|
|
|
|
|
|
C<bug-test-run-plugin-colorfileverdicts at rt.cpan.org>, or through the web interface at |
|
58
|
|
|
|
|
|
|
L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Test-Run-Plugin-ColorFileVerdicts>. |
|
59
|
|
|
|
|
|
|
I will be notified, and then you'll automatically be notified of progress on |
|
60
|
|
|
|
|
|
|
your bug as I make changes. |
|
61
|
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=head1 SUPPORT |
|
63
|
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
You can find documentation for this module with the perldoc command. |
|
65
|
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
perldoc Test::Run::Plugin::ColorFileVerdicts::ColorBase |
|
67
|
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
You can also look for information at: |
|
69
|
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
=over 4 |
|
71
|
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
=item * CPAN Ratings |
|
73
|
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
L<http://cpanratings.perl.org/d/Test-Run-Plugin-ColorFileVerdicts> |
|
75
|
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
=item * RT: CPAN's request tracker |
|
77
|
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
L<http://rt.cpan.org/NoAuth/Bugs.html?Dist=Test-Run-Plugin-ColorFileVerdicts> |
|
79
|
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
=item * MetaCPAN |
|
81
|
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
L<http://metacpan.org/releaseTest-Run-Plugin-ColorFileVerdicts> |
|
83
|
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
=back |
|
85
|
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
=head1 ACKNOWLEDGEMENTS |
|
87
|
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
=head1 COPYRIGHT & LICENSE |
|
89
|
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
Copyright 2007 Shlomi Fish, all rights reserved. |
|
91
|
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
This program is released under the following license: MIT Expat |
|
93
|
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
=cut |
|
95
|
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
1; |
|
97
|
|
|
|
|
|
|
|