Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(301)

Issue 16580018: Code coverage server babysteps. (Closed)

Created:
7 years, 6 months ago by scheglov
Modified:
7 years, 6 months ago
Reviewers:
pquitslund
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Code coverage server babysteps. Largely just structure and (happy part of) the life cycle. It even works in trivial application, although it does nothing interesting within the touch() function. R=pquitslund@google.com BUG= Committed: https://code.google.com/p/dart/source/detail?r=23876

Patch Set 1 #

Total comments: 22
Unified diffs Side-by-side diffs Delta from patch set Stats (+180 lines, -0 lines) Patch
A pkg/analyzer_experimental/bin/coverage_server.dart View 1 chunk +18 lines, -0 lines 2 comments Download
A pkg/analyzer_experimental/lib/src/services/runtime/coverage_lib.dart View 1 chunk +7 lines, -0 lines 2 comments Download
A pkg/analyzer_experimental/lib/src/services/runtime/coverage_server_impl.dart View 1 chunk +154 lines, -0 lines 18 comments Download
M pkg/analyzer_experimental/pubspec.yaml View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
scheglov
7 years, 6 months ago (2013-06-11 08:12:34 UTC) #1
pquitslund
LGTM. Superficial tweaks to bring it in line with my understanding of the emerging style ...
7 years, 6 months ago (2013-06-11 17:18:56 UTC) #2
scheglov
Committed patchset #1 manually as r23876 (presubmit successful).
7 years, 6 months ago (2013-06-11 19:50:44 UTC) #3
scheglov
7 years, 6 months ago (2013-06-11 19:54:23 UTC) #4
Message was sent while issue was closed.
https://codereview.chromium.org/16580018/diff/1/pkg/analyzer_experimental/bin...
File pkg/analyzer_experimental/bin/coverage_server.dart (right):

https://codereview.chromium.org/16580018/diff/1/pkg/analyzer_experimental/bin...
pkg/analyzer_experimental/bin/coverage_server.dart:1: library
runtime.coverage.server;
On 2013/06/11 17:18:56, pquitslund wrote:
> Copyright header?

Done.

https://codereview.chromium.org/16580018/diff/1/pkg/analyzer_experimental/lib...
File pkg/analyzer_experimental/lib/src/services/runtime/coverage_lib.dart
(right):

https://codereview.chromium.org/16580018/diff/1/pkg/analyzer_experimental/lib...
pkg/analyzer_experimental/lib/src/services/runtime/coverage_lib.dart:1: /// This
library is injected into the applications under coverage.
On 2013/06/11 17:18:56, pquitslund wrote:
> Copyright?

Done.

https://codereview.chromium.org/16580018/diff/1/pkg/analyzer_experimental/lib...
File
pkg/analyzer_experimental/lib/src/services/runtime/coverage_server_impl.dart
(right):

https://codereview.chromium.org/16580018/diff/1/pkg/analyzer_experimental/lib...
pkg/analyzer_experimental/lib/src/services/runtime/coverage_server_impl.dart:1:
/// A library for code coverage support for Dart.
On 2013/06/11 17:18:56, pquitslund wrote:
> Again.  Probably want a header.

Done.

https://codereview.chromium.org/16580018/diff/1/pkg/analyzer_experimental/lib...
pkg/analyzer_experimental/lib/src/services/runtime/coverage_server_impl.dart:27:
// prepare path
On 2013/06/11 17:18:56, pquitslund wrote:
> prepare -> Prepare (upper case)

Done.

https://codereview.chromium.org/16580018/diff/1/pkg/analyzer_experimental/lib...
pkg/analyzer_experimental/lib/src/services/runtime/coverage_server_impl.dart:28:
String path = _basePath + '/' + request.uri.path;
On 2013/06/11 17:18:56, pquitslund wrote:
> var path

Done.

https://codereview.chromium.org/16580018/diff/1/pkg/analyzer_experimental/lib...
pkg/analyzer_experimental/lib/src/services/runtime/coverage_server_impl.dart:31:
// may be we have path content
On 2013/06/11 17:18:56, pquitslund wrote:
> Upper case 'may'

Done.

https://codereview.chromium.org/16580018/diff/1/pkg/analyzer_experimental/lib...
pkg/analyzer_experimental/lib/src/services/runtime/coverage_server_impl.dart:41:
// get content from file
On 2013/06/11 17:18:56, pquitslund wrote:
> More upper case (and below).  Pretty sure the style guide recommends this for
> comments.

Done.

https://codereview.chromium.org/16580018/diff/1/pkg/analyzer_experimental/lib...
pkg/analyzer_experimental/lib/src/services/runtime/coverage_server_impl.dart:43:
File file = new File(path);
On 2013/06/11 17:18:56, pquitslund wrote:
> var file

Done.

https://codereview.chromium.org/16580018/diff/1/pkg/analyzer_experimental/lib...
pkg/analyzer_experimental/lib/src/services/runtime/coverage_server_impl.dart:95:
CompilationUnit unit = _parseCode(code);
On 2013/06/11 17:18:56, pquitslund wrote:
> Again, drop the type annotation (var unit).

Done.

https://codereview.chromium.org/16580018/diff/1/pkg/analyzer_experimental/lib...
pkg/analyzer_experimental/lib/src/services/runtime/coverage_server_impl.dart:114:
Source source = null;
On 2013/06/11 17:18:56, pquitslund wrote:
> And here.

Done.

https://codereview.chromium.org/16580018/diff/1/pkg/analyzer_experimental/lib...
pkg/analyzer_experimental/lib/src/services/runtime/coverage_server_impl.dart:129:
int offset = node.end;
On 2013/06/11 17:18:56, pquitslund wrote:
> And here.

Done.

Powered by Google App Engine
This is Rietveld 408576698