Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

file 65 lines (56 sloc) 2.872 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
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-2012, 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
               1
               1
               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:13
BEGIN 1 tests/moose_constraint:17
Something went wrong with that request. Please try again.