File: nodefaultwarnings.t

package info (click to toggle)
libtest-mockobject-perl 1.20200122-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 216 kB
  • sloc: perl: 1,260; makefile: 2
file content (25 lines) | stat: -rw-r--r-- 590 bytes parent folder | download | duplicates (6)
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
#! perl

use strict;
use warnings;

use Test::More 0.98;
use Test::Warn 0.23;

use_ok 'Test::MockObject';

warning_is { UNIVERSAL::isa( {}, 'HASH' ) } undef,
    'T::MO should not enable U::i by default';

warning_is { UNIVERSAL::can( 'UNIVERSAL', 'to_string' ) } undef,
    'T::MO should not enable U::c by default';

use_ok 'Test::MockObject::Extends';

warning_is { UNIVERSAL::isa( {}, 'HASH' ) } undef,
    'T::MO::E should not enable U::i by default';

warning_is { UNIVERSAL::can( 'UNIVERSAL', 'to_string' ) } undef,
    'T::MO::E should not enable U::c by default';

done_testing();