[Webkit-unassigned] [Bug 117648] coverage data to json script

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jun 17 14:59:12 PDT 2013


https://bugs.webkit.org/show_bug.cgi?id=117648


Stephanie Lewis <slewis at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #204726|review?                     |review+
               Flag|                            |




--- Comment #2 from Stephanie Lewis <slewis at apple.com>  2013-06-17 14:57:50 PST ---
(From update of attachment 204726)
View in context: https://bugs.webkit.org/attachment.cgi?id=204726&action=review

A few minor comments, otherwise it looks good. Clean up the style a little and then r=me

> Tools/ChangeLog:7
> +

You should add a blurb about what the project is and what piece this is

> Tools/Scripts/generate-coverage-data:71
> +

spaces between concatenation operators

Usually add an error message after die.

i.e.
or die "Cannot open $file";

> Tools/Scripts/generate-coverage-data:73
> +open my $jsonFile, ">", "WebKitBuild/Coverage/".$resultName.".json" or die "error opening json file";

spaces

> Tools/Scripts/generate-coverage-data:74
> +print $jsonFile encode_json(parseGcovrOutput("WebKitBuild/Coverage/".$resultName.".xml"));

spaces

> Tools/Scripts/generate-coverage-data:89
> +    foreach my $packageName (keys %$packages) {

nit, I think this is usually written %{$packages}

> Tools/Scripts/generate-coverage-data:92
> +        # Perl's XML::Simple causes files to be here if there's only one child even though they're a layer deeper in the xml tree

Files to be where?  This comment confused me.

> Tools/Scripts/generate-coverage-data:153
> +        $line->{"condition-coverage"} =~ /\((.*)\/(.*)\)/;

should add a comment saying what this regex is looking for.

> Tools/Scripts/generate-coverage-data:156
> +        push(@$branchLines,int($line->{"number"}));

spaces between parameters

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list