File: Debugger3.pm

package info (click to toggle)
libbadger-perl 0.16-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,400 kB
  • sloc: perl: 11,004; makefile: 9
file content (30 lines) | stat: -rw-r--r-- 481 bytes parent folder | download
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
# test module used by t/core/debug.t

package My::Debugger3;

use Badger::Debug
    default => 0;

sub debug_static_status {
    return DEBUG ? 'on' : 'off';
}

sub debug_dynamic_status {
    return $DEBUG ? 'on' : 'off';
}

sub wibble {
    my ($self, $value) = @_;
    return DEBUG        
        ? 'debugging wibble'
        : 'normal wibble';
}

sub wobble {
    my ($self, $value) = @_;
    return $DEBUG        
        ? 'debugging wobble'
        : 'normal wobble';
}

1;