Leser: 1
|< 1 2 3 >| | 27 Einträge, 3 Seiten |
Quote<?xml version="1.0" encoding="UTF-8"?><!-- EMMA v2.0.5312 report, generated Wed Nov 01 16:14:54 CET 2006 -->
<report>
<stats>
<packages value="5"/>
<classes value="80"/>
<methods value="589"/>
<srcfiles value="57"/>
<srclines value="3469"/>
</stats>
<data>
<all name="all classes">
<coverage type="class, %" value="96% (77/80)"/>
<coverage type="method, %" value="66% (391/589)"/>
<coverage type="block, %" value="70% (11659/16578)"/>
<coverage type="line, %" value="70% (2421.3/3469)"/>
my ($type, $value1, $value2, $value3)=$xml=~m|<\s*coverage\s+type="(block|line)\s*,\s*\%\s*"\s+value="(\d+)\%\s+\(([\d\.]+)/([\d\.]+)\)"\s*/>|s;
my ($type, $value1, $value2, $value3)=$xml=~m|<\s*coverage\s+type="(block|line)\s*,\s*\%\s*"\s+value="(\d+)\%\s+\(([\d\.]+)/([\d\.]+)\)"\s*/>|s;
QuoteUnmatched ( in regex; marked by <-- HERE in m/<\s*coverage\s+type="( <-- HERE block/ at z:\tla\Scripts\Emmaparser\emmaparser2.pl line 14.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# !perl
use strict;
use warnings;
my $dataxml = 'z:\tla\scripts\emmaparser\index.xml';
my $xmlfile;
open($xmlfile,'<',$dataxml) or die $!;
while(my $line = <$xmlfile>)
{
my ($type, $value1, $value2, $value3)=$line=~m|<\s*coverage\s+type="(block|line)\s*,\s*\%\s*"\s+value="(\d+)\%\s+\(([\d\.]+)/([\d\.]+)\)"\s*/>|s;
}
close ($xmlfile);
my ($type, $value1, $value2, $value3)= $line =~ m!<\s*coverage\s+type="(block|line)\s*,\s*\%\s*"\s+value="(\d+)\%\s+\(([\d\.]+)/([\d\.]+)\)"\s*/>!s;
|< 1 2 3 >| | 27 Einträge, 3 Seiten |