-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #568 from atsign-foundation/io-mocking
refactor: wrap all dart:io calls
- Loading branch information
Showing
18 changed files
with
143 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/// This file contains all of the dart:io calls in noports_core | ||
/// All io used should be wrapped for the sake of testing and compatibilty | ||
import 'dart:io' show Process, ProcessResult, ProcessStartMode; | ||
import 'package:meta/meta.dart'; | ||
|
||
export 'dart:io' show Platform, Process, ProcessStartMode, ServerSocket, InternetAddress; | ||
export 'package:file/file.dart'; | ||
export 'package:file/local.dart' show LocalFileSystem; | ||
|
||
@internal | ||
typedef ProcessRunner = Future<ProcessResult> Function( | ||
String executable, | ||
List<String> arguments, { | ||
String? workingDirectory, | ||
}); | ||
|
||
@internal | ||
typedef ProcessStarter = Future<Process> Function( | ||
String executable, | ||
List<String> arguments, { | ||
bool runInShell, | ||
ProcessStartMode mode, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/noports_core/lib/src/sshnp/impl/sshnp_unsigned_impl.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.