feat: add domain models for test configuration and results
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import 'package:flutter_test/flutter_test.dart';
|
||||
import 'package:iperf3gui/domain/models/iperf3_result.dart';
|
||||
|
||||
void main() {
|
||||
group('Iperf3Result', () {
|
||||
test('can be instantiated with raw output', () {
|
||||
const result = Iperf3Result(
|
||||
rawOutput: 'Test complete',
|
||||
exitCode: 0,
|
||||
);
|
||||
expect(result.rawOutput, equals('Test complete'));
|
||||
expect(result.exitCode, equals(0));
|
||||
});
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user