blib/lib/OTRS/OPM/Maker/Command/sopmtest.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 6 | 6 | 100.0 |
line | true | false | branch |
---|---|---|---|
24 | 7 | 1 | if not $args or 'ARRAY' ne ref $args or not defined $args->[0] or not $args->[0] =~ /\.sopm\z/ or not -f $args->[0] |
44 | 3 | 4 | unless (eval { do { my $parser = 'XML::LibXML'->new; $tree = $parser->parse_file($file); 1 } }) |
51 | 1 | 3 | unless (eval { do { my $xsd = do { local $/; readline DATA }; my $schema = 'XML::LibXML::Schema'->new('string', $xsd); $schema->validate($tree); 1 } }) |