Skip to content

Commit

Permalink
test: sshrvd channel implementations
Browse files Browse the repository at this point in the history
  • Loading branch information
XavierChanth committed Nov 20, 2023
1 parent f453d8d commit f9eff5a
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1 +1,30 @@
void main() {}
import 'package:noports_core/sshnp_foundation.dart';
import 'package:socket_connector/socket_connector.dart';
import 'package:test/test.dart';
import 'package:uuid/uuid.dart';

import '../../sshnp_mocks.dart';

void main() {
group('SshrvdDartChannel', () {
late MockAtClient mockAtClient;
late MockSshnpParams mockSshnpParams;
late String sessionId;

setUp(() {
mockAtClient = MockAtClient();
mockSshnpParams = MockSshnpParams();
sessionId = Uuid().v4();
});
test('public API', () {
expect(
SshrvdDartChannel(
atClient: mockAtClient,
params: mockSshnpParams,
sessionId: sessionId,
),
isA<SshrvdChannel<SocketConnector>>(),
);
});
}); // group SshrvdDartChannel
}
Original file line number Diff line number Diff line change
@@ -1 +1,30 @@
void main() {}
import 'package:noports_core/src/common/io_types.dart';
import 'package:noports_core/sshnp_foundation.dart';
import 'package:test/test.dart';
import 'package:uuid/uuid.dart';

import '../../sshnp_mocks.dart';

void main() {
group('SshrvdExecChannel', () {
late MockAtClient mockAtClient;
late MockSshnpParams mockSshnpParams;
late String sessionId;

setUp(() {
mockAtClient = MockAtClient();
mockSshnpParams = MockSshnpParams();
sessionId = Uuid().v4();
});
test('public API', () {
expect(
SshrvdExecChannel(
atClient: mockAtClient,
params: mockSshnpParams,
sessionId: sessionId,
),
isA<SshrvdChannel<Process>>(),
);
});
}); // group SshrvdDartChannel
}

0 comments on commit f9eff5a

Please sign in to comment.