Reading database from ...
------------------------------------------ ------ ------ ------ ------ ------
File stmt bran cond sub total
------------------------------------------ ------ ------ ------ ------ ------
tests/moose_constraint 100.0 n/a n/a 100.0 100.0
Total 100.0 n/a n/a 100.0 100.0
------------------------------------------ ------ ------ ------ ------ ------
Run: ...
Perl version: ...
OS: ...
Start: ...
Finish: ...
tests/moose_constraint
line err stmt bran cond sub code
1 #!/usr/bin/perl
2
3 # Copyright 2011-2013, Paul Johnson (paul@pjcj.net)
4
5 # This software is free. It is licensed under the same terms as Perl itself.
6
7 # The latest version of this software should be available from my homepage:
8 # http://www.pjcj.net
9
10 # __COVER__ skip_test $] < 5.010 || !(eval "use Moose; 23")
11 # __COVER__ skip_reason Moose not available or unreliable with Devel::Cover
12
13 1 1 use 5.010;
1
1
14
15 package Foo;
16
17 1 1 use Moose;
1
1
18
19 1 has bar => (
20 is => 'rw',
21 isa => 'Maybe[Str]',
22 );
23
24 package main;
25
26 1 my $example = Foo->new();
27 1 $example->bar('whatever');
28 1 say $example->bar();
Covered Subroutines
-------------------
Subroutine Count Location
---------- ----- -------------------------
BEGIN 1 tests/moose_constraint:13
BEGIN 1 tests/moose_constraint:17