1 use Test::More 'no_plan';
4 my $Class = 'Log::Message::Simple';
5 my @Carp = qw[carp croak cluck confess];
6 my @Msg = qw[msg debug error];
15 Test::More::ok( !$@, "using $Class with no import" );
17 for my $func ( @Carp, @Msg ) {
18 Test::More::ok( !__PACKAGE__->can( $func ),
19 " $func not imported" );
26 eval "use $Class ':STD'";
27 Test::More::ok( !$@, "using $Class with :STD import" );
29 for my $func ( @Carp ) {
30 Test::More::ok( !__PACKAGE__->can( $func ),
31 " $func not imported" );
34 for my $func ( @Msg ) {
35 Test::More::ok( __PACKAGE__->can( $func ),
43 eval "use $Class ':CARP'";
44 Test::More::ok( !$@, "using $Class with :CARP import" );
46 for my $func ( @Msg ) {
47 Test::More::ok( !__PACKAGE__->can( $func ),
48 " $func not imported" );
51 for my $func ( @Carp ) {
52 Test::More::ok( __PACKAGE__->can( $func ),
61 eval "use $Class ':ALL'";
62 Test::More::ok( !$@, "using $Class with :ALL import" );
64 for my $func ( @Carp, @Msg ) {
65 Test::More::ok( __PACKAGE__->can( $func ),