File: 80beam.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 (24 lines) | stat: -rw-r--r-- 357 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
use strict;
use warnings;
use Test::More;

use Test::Requires 'Beam::Wire';
{ package Local::Dummy1; use Test::Requires 'Moose::Role' };


package ThisFailsRole {
	use Moose::Role;
	use Sub::HandlesVia;

	has 'test' => (
		is => 'rw',
		default => sub { [] },
		handles_via => 'Array',
		handles => {
			'add_test' => 'push',
		}
	);
}

pass;
done_testing;