File: TestLogger.pm

package info (click to toggle)
libcatalyst-authentication-credential-authen-simple-perl 0.09-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 228 kB
  • ctags: 26
  • sloc: perl: 305; makefile: 2
file content (33 lines) | stat: -rw-r--r-- 687 bytes parent folder | download | duplicates (4)
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
package TestLogger;

use Test::More;

sub new {
    return(bless {}, $_[0]);
}

sub info {
    my ($self, $message) = @_;
    cmp_ok($message, 'eq', 'just calling', 'got correct log info');
    ok(1, 'info method got called');
}

sub debug {
    my ($self, $message) = @_;
    cmp_ok($message, 'eq', 'just calling', 'got correct log info');
    ok(1, 'debug method got called');
}

sub error {
    my ($self, $message) = @_;
    cmp_ok($message, 'eq', 'just calling', 'got correct log info');
    ok(1, 'error method got called');
}

sub warn {
    my ($self, $message) = @_;
    cmp_ok($message, 'eq', 'just calling', 'got correct log info');
    ok(1, 'warn method got called');
}

1;