| line | stmt | bran | cond | sub | pod | time | code | 
| 1 |  |  |  |  |  |  | package Test::Unit::Warning; | 
| 2 |  |  |  |  |  |  | BEGIN { | 
| 3 | 2 |  |  | 2 |  | 58 | $Test::Unit::Warning::VERSION = '0.25_1325'; # added by dist-tools/SetVersion.pl | 
| 4 |  |  |  |  |  |  | } | 
| 5 |  |  |  |  |  |  |  | 
| 6 | 2 |  |  | 2 |  | 12 | use strict; | 
|  | 2 |  |  |  |  | 5 |  | 
|  | 2 |  |  |  |  | 66 |  | 
| 7 | 2 |  |  | 2 |  | 11 | use base 'Test::Unit::TestCase'; | 
|  | 2 |  |  |  |  | 4 |  | 
|  | 2 |  |  |  |  | 353 |  | 
| 8 |  |  |  |  |  |  |  | 
| 9 |  |  |  |  |  |  | =head1 NAME | 
| 10 |  |  |  |  |  |  |  | 
| 11 |  |  |  |  |  |  | Test::Unit::Warning - helper TestCase for adding warnings to a suite | 
| 12 |  |  |  |  |  |  |  | 
| 13 |  |  |  |  |  |  | =head1 DESCRIPTION | 
| 14 |  |  |  |  |  |  |  | 
| 15 |  |  |  |  |  |  | Used by L and others to provide messages that | 
| 16 |  |  |  |  |  |  | come up when the suite runs. | 
| 17 |  |  |  |  |  |  |  | 
| 18 |  |  |  |  |  |  | =cut | 
| 19 |  |  |  |  |  |  |  | 
| 20 |  |  |  |  |  |  | sub run_test { | 
| 21 | 1 |  |  | 1 | 0 | 2 | my $self = shift; | 
| 22 | 1 |  |  |  |  | 13 | $self->fail($self->{_message}); | 
| 23 |  |  |  |  |  |  | } | 
| 24 |  |  |  |  |  |  |  | 
| 25 |  |  |  |  |  |  | sub new { | 
| 26 | 1 |  |  | 1 | 0 | 4 | my $class = shift; | 
| 27 | 1 |  |  |  |  | 9 | my $self = $class->SUPER::new('warning'); | 
| 28 | 1 |  |  |  |  | 9 | $self->{_message} = shift; | 
| 29 | 1 |  |  |  |  | 195 | return $self; | 
| 30 |  |  |  |  |  |  | } | 
| 31 |  |  |  |  |  |  |  | 
| 32 |  |  |  |  |  |  | 1; | 
| 33 |  |  |  |  |  |  |  | 
| 34 |  |  |  |  |  |  |  | 
| 35 |  |  |  |  |  |  | =head1 AUTHOR | 
| 36 |  |  |  |  |  |  |  | 
| 37 |  |  |  |  |  |  | Copyright (c) 2000-2002, 2005 the PerlUnit Development Team | 
| 38 |  |  |  |  |  |  | (see L or the F file included in this | 
| 39 |  |  |  |  |  |  | distribution). | 
| 40 |  |  |  |  |  |  |  | 
| 41 |  |  |  |  |  |  | All rights reserved. This program is free software; you can | 
| 42 |  |  |  |  |  |  | redistribute it and/or modify it under the same terms as Perl itself. | 
| 43 |  |  |  |  |  |  |  | 
| 44 |  |  |  |  |  |  | =cut | 
| 45 |  |  |  |  |  |  |  |