File: Reporter.pm

package info (click to toggle)
libcpan-reporter-smoker-perl 0.30-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 380 kB
  • sloc: perl: 701; makefile: 2
file content (37 lines) | stat: -rw-r--r-- 645 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Mock Test::Reporter -- don't actually send anything
# Adapated from helper test code in CPAN::Reporter
package Test::Reporter;
our $VERSION = 1.54;

use Config;

use vars qw/$AUTOLOAD/;

sub new { return bless {}, shift }

# always pretend to be successful sending
sub send { 
    return 1 
} 

sub address {
    return "nowhere"
}

sub subject {
    my $self = shift;
    return uc($self->grade) . ' ' . $self->distribution .
        " $Config{archname} $Config{osvers}";
}

# handle all other properties
sub AUTOLOAD {
    my $self = shift;
    if ( @_ ) {
        $self->{ $AUTOLOAD } = shift;
    }
    return $self->{ $AUTOLOAD };
}

1;