Skip to content

Commit

Permalink
Add test for IsolatePort
Browse files Browse the repository at this point in the history
  • Loading branch information
lamnhan066 committed Dec 26, 2024
1 parent b99e7ef commit c460ea8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/isolate_manager_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import 'dart:async';
import 'dart:convert';

import 'package:isolate_manager/isolate_manager.dart';
import 'package:isolate_manager/src/base/contactor/models/isolate_port.dart';
import 'package:isolate_manager/src/models/isolate_queue.dart';
import 'package:test/test.dart';

Expand All @@ -23,6 +24,12 @@ void main() {
}
});

test('IsolatePort', () {
for (final port in IsolatePort.values) {
expect(port, isA<IsolatePort>());
}
});

test('IsolateException', () {
final exception =
IsolateException('Object', StackTrace.fromString('stackTrace'));
Expand Down

0 comments on commit c460ea8

Please sign in to comment.