CSE/File/TextXScala.pm untested

filter: Statementstmt 0.0% 0 / 10 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 13 CC 1 SCAR 6.9
CC
1
Cov
0%
_build_decl
2.0
BEGIN
2.0
CRAP 2.0
1 package App::CSE::File::TextXScala;
2 $App::CSE::File::TextXScala::VERSION = '0.016';
3 use Moose;
4  
5 extends qw/App::CSE::File/;
6  
7 sub _build_decl{
8 my ($self) = @_;
9 ( my @declarations ) = ( $self->content() =~ m/\s(?:class|trait|object|def|val|var)\s+(\w+)/gm );
10 return \@declarations;
11 }
12  
13 __PACKAGE__->meta->make_immutable();