Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
889a1e8e
Commit
889a1e8e
authored
Dec 14, 2015
by
Hixie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Analyze more tests.
parent
07341e32
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
analyze.dart
packages/flutter_tools/lib/src/commands/analyze.dart
+22
-0
No files found.
packages/flutter_tools/lib/src/commands/analyze.dart
View file @
889a1e8e
...
...
@@ -95,10 +95,13 @@ class AnalyzeCommand extends FlutterCommand {
// .../packages/*/bin/*.dart
// .../packages/*/lib/main.dart
// .../packages/*/test/*_test.dart
// .../packages/*/test/*/*_test.dart
Directory
packages
=
new
Directory
(
path
.
join
(
ArtifactStore
.
flutterRoot
,
'packages'
));
for
(
FileSystemEntity
entry
in
packages
.
listSync
())
{
if
(
entry
is
Directory
)
{
bool
foundOne
=
false
;
Directory
binDirectory
=
new
Directory
(
path
.
join
(
entry
.
path
,
'bin'
));
if
(
binDirectory
.
existsSync
())
{
for
(
FileSystemEntity
subentry
in
binDirectory
.
listSync
())
{
...
...
@@ -108,11 +111,30 @@ class AnalyzeCommand extends FlutterCommand {
}
}
}
String
mainPath
=
path
.
join
(
entry
.
path
,
'lib'
,
'main.dart'
);
if
(
FileSystemEntity
.
isFileSync
(
mainPath
))
{
dartFiles
.
add
(
mainPath
);
foundOne
=
true
;
}
Directory
testDirectory
=
new
Directory
(
path
.
join
(
entry
.
path
,
'test'
));
if
(
testDirectory
.
existsSync
())
{
for
(
FileSystemEntity
entry
in
testDirectory
.
listSync
())
{
if
(
entry
is
Directory
)
{
for
(
FileSystemEntity
subentry
in
entry
.
listSync
())
{
if
(
subentry
is
File
&&
subentry
.
path
.
endsWith
(
'_test.dart'
))
{
dartFiles
.
add
(
subentry
.
path
);
foundTest
=
true
;
}
}
}
else
if
(
entry
is
File
&&
entry
.
path
.
endsWith
(
'_test.dart'
))
{
dartFiles
.
add
(
entry
.
path
);
foundTest
=
true
;
}
}
}
if
(
foundOne
)
pubSpecDirectories
.
add
(
entry
.
path
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment