File Coverage

blib/lib/RDF/DOAP/Repository.pm
Criterion Covered Total %
statement 12 12 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 16 16 100.0


line stmt bran cond sub pod time code
1             package RDF::DOAP::Repository;
2              
3             our $AUTHORITY = 'cpan:TOBYINK';
4             our $VERSION = '0.103';
5              
6 2     2   17 use Moose;
  2         4  
  2         17  
7             extends qw(RDF::DOAP::Resource);
8              
9 2     2   14428 use RDF::DOAP::Types -types;
  2         6  
  2         22  
10 2     2   11785 use RDF::DOAP::Utils -traits;
  2         5  
  2         20  
11              
12 2     2   800 use RDF::Trine::Namespace qw(rdf rdfs owl xsd);
  2         7  
  2         27  
13             my $doap = 'RDF::Trine::Namespace'->new('http://usefulinc.com/ns/doap#');
14              
15             has $_ => (
16             traits => [ WithURI ],
17             is => 'ro',
18             isa => Identifier,
19             coerce => 1,
20             uri => do { (my $x = $_) =~ s/_/-/g; $doap->$x },
21             ) for qw( browse location );
22              
23             has $_ => (
24             traits => [ WithURI ],
25             is => 'ro',
26             isa => String,
27             coerce => 1,
28             uri => do { (my $x = $_) =~ s/_/-/g; $doap->$x },
29             ) for qw( anon_root module );
30              
31             1;