File: 60detect.t

package info (click to toggle)
libsub-handlesvia-perl 0.050002-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 1,656 kB
  • sloc: perl: 9,585; makefile: 2
file content (12 lines) | stat: -rw-r--r-- 299 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
use Test::More;
{ package Local::Dummy1; use Test::Requires 'Moo::Role' };
{ package Local::Dummy2; use Test::Requires 'Mouse::Role' };

{
	package ThisFailsRole;
	use Mouse::Role;
	use Sub::HandlesVia;
}

is( Sub::HandlesVia->_detect_framework('ThisFailsRole'), 'Mouse', 'role ok' );
done_testing;