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

Issue 584963002: first cut fuzz test for analysis server (Closed)

Created:
6 years, 3 months ago by danrubel
Modified:
6 years, 3 months ago
Reviewers:
lukechurch
CC:
reviews_dartlang.org
Visibility:
Public.

Description

first cut fuzz test for analysis server This very rough first cut drives the analysis server snapshot so that it... - analyzes the specified source tree - locates and 'opens' a file in that tree - modifies the content of that file in memory without saving to disk - requests code completions I'm not happy with the readability of the ServerTest # test() method because of all the Future references. I'm going to experiment with async / await to see if that can make it more readable. There are several libraries that I pulled out of the analysis server code base and cleaned up to use with an analysis server client. In the long run, these analysis server client libraries need to be cleaned up so that clients can import them rather than having to do what I've done. These libraries include: - example/server_test/bin/byte_stream_channel.dart - example/server_test/bin/channel.dart - example/server_test/bin/generated_protocol.dart - example/server_test/bin/json.dart - example/server_test/bin/protocol.dart BUG= R=lukechurch@google.com Committed: https://code.google.com/p/dart/source/detail?r=40556

Patch Set 1 #

Total comments: 16

Patch Set 2 : merge and address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+670 lines, -503 lines) Patch
A pkg/analysis_server/bin/fuzz.dart View 1 chunk +166 lines, -0 lines 0 comments Download
A pkg/analysis_server/bin/fuzz/README.txt View 1 1 chunk +9 lines, -0 lines 0 comments Download
A + pkg/analysis_server/bin/fuzz/byte_stream_channel.dart View 1 chunk +2 lines, -2 lines 0 comments Download
A + pkg/analysis_server/bin/fuzz/channel.dart View 1 chunk +1 line, -1 line 0 comments Download
A + pkg/analysis_server/bin/fuzz/generated_protocol.dart View 1 19 chunks +0 lines, -187 lines 0 comments Download
A + pkg/analysis_server/bin/fuzz/json.dart View 0 chunks +-1 lines, --1 lines 0 comments Download
A pkg/analysis_server/bin/fuzz/logging_client_channel.dart View 1 chunk +85 lines, -0 lines 0 comments Download
A + pkg/analysis_server/bin/fuzz/protocol.dart View 1 14 chunks +43 lines, -314 lines 0 comments Download
A pkg/analysis_server/bin/fuzz/server_manager.dart View 1 1 chunk +365 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (1 generated)
danrubel
6 years, 3 months ago (2014-09-19 15:34:55 UTC) #2
lukechurch
lgtm on the basis that this is 'experimental' and 'work in progress'. :-) Could you ...
6 years, 3 months ago (2014-09-21 05:36:11 UTC) #3
danrubel
https://codereview.chromium.org/584963002/diff/1/pkg/analysis_server/bin/fuzz.dart File pkg/analysis_server/bin/fuzz.dart (right): https://codereview.chromium.org/584963002/diff/1/pkg/analysis_server/bin/fuzz.dart#newcode84 pkg/analysis_server/bin/fuzz.dart:84: if (!appDir.existsSync()) { On 2014/09/21 05:36:10, lukechurch wrote: > ...
6 years, 3 months ago (2014-09-22 18:27:26 UTC) #4
danrubel
6 years, 3 months ago (2014-09-22 18:27:56 UTC) #5
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as 40556 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698