Subject: | conflicts with Devel::Cover |
The test below fails (without Devel::Cover, it passes).
HARNESS_PERL_SWITCHES=-MDevel::Cover prove test.t
The error message is:
# Failed test 'use Foo;'
# at test.t line 2.
# Tried to use 'Foo'.
# Error: Can't use an undefined value as a symbol reference at
/Users/danjou/perl5/lib/perl5/namespace/clean.pm line 170.
# Compilation failed in require at (eval
27)[/Users/danjou/perl5/lib/perl5/Test/More.pm:745] line 2.
# BEGIN failed--compilation aborted at (eval
27)[/Users/danjou/perl5/lib/perl5/Test/More.pm:745] line 2.
# Looks like you failed 1 test of 1.
use.t:
use Test::More tests => 1;
use_ok 'Foo';
Foo.pm:
package Foo;
use Moose;
use namespace::clean;
no Moose;
1;