File: 50options.t

package info (click to toggle)
liblog-report-optional-perl 1.07-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 140 kB
  • sloc: perl: 483; makefile: 2
file content (14 lines) | stat: -rw-r--r-- 361 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env perl
# Test loading of "Minimal" via "Optional"

use Test::More tests => 5;

BEGIN { use_ok('Log::Report::Optional','log-report') }

my $x = __"test";
is($x, 'test',  '__ returns same');
is(ref $x, '',  'not Log::Report::Message');

my @using = Log::Report::Optional->usedBy;
cmp_ok(scalar @using, '==', 1, 'usedBy');
is($using[0], __PACKAGE__);