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
b156c0c4
Unverified
Commit
b156c0c4
authored
Jul 18, 2022
by
Christopher Fujino
Committed by
GitHub
Jul 18, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[flutter_tools] migrate clean_test to null-safety (#107750)
parent
54298d1c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
11 deletions
+14
-11
clean_test.dart
...lutter_tools/test/commands.shard/hermetic/clean_test.dart
+14
-11
No files found.
packages/flutter_tools/test/commands.shard/hermetic/clean_test.dart
View file @
b156c0c4
...
...
@@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// @dart = 2.8
import
'package:file/memory.dart'
;
import
'package:file_testing/file_testing.dart'
;
import
'package:flutter_tools/src/base/file_system.dart'
;
...
...
@@ -22,8 +20,8 @@ import '../../src/context.dart';
void
main
(
)
{
group
(
'clean command'
,
()
{
Xcode
xcode
;
FakeXcodeProjectInterpreter
xcodeProjectInterpreter
;
late
Xcode
xcode
;
late
FakeXcodeProjectInterpreter
xcodeProjectInterpreter
;
setUp
(()
{
xcodeProjectInterpreter
=
FakeXcodeProjectInterpreter
();
...
...
@@ -34,8 +32,8 @@ void main() {
});
group
(
'general'
,
()
{
MemoryFileSystem
fs
;
Directory
buildDirectory
;
late
MemoryFileSystem
fs
;
late
Directory
buildDirectory
;
setUp
(()
{
fs
=
MemoryFileSystem
.
test
();
...
...
@@ -104,9 +102,9 @@ void main() {
});
group
(
'Windows'
,
()
{
FakePlatform
windowsPlatform
;
MemoryFileSystem
fileSystem
;
FileExceptionHandler
exceptionHandler
;
late
FakePlatform
windowsPlatform
;
late
MemoryFileSystem
fileSystem
;
late
FileExceptionHandler
exceptionHandler
;
setUp
(()
{
windowsPlatform
=
FakePlatform
(
operatingSystem:
'windows'
);
...
...
@@ -191,8 +189,13 @@ class FakeXcodeProjectInterpreter extends Fake implements XcodeProjectInterprete
Version
version
=
Version
(
0
,
0
,
0
);
@override
Future
<
XcodeProjectInfo
>
getInfo
(
String
projectPath
,
{
String
projectFilename
})
async
{
return
XcodeProjectInfo
(
null
,
null
,
<
String
>[
'Runner'
],
BufferLogger
.
test
());
Future
<
XcodeProjectInfo
>
getInfo
(
String
projectPath
,
{
String
?
projectFilename
})
async
{
return
XcodeProjectInfo
(
const
<
String
>[],
const
<
String
>[],
<
String
>[
'Runner'
],
BufferLogger
.
test
(),
);
}
final
List
<
CleanWorkspaceCall
>
workspaces
=
<
CleanWorkspaceCall
>[];
...
...
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